Changes between Initial Version and Version 1 of Ticket #7138, comment 7
- Timestamp:
- Nov 11, 2010, 10:37:57 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #7138, comment 7
initial v1 1 1 In case of {{{ .html("line1\nline2") }}} the code at https://github.com/jquery/jquery/blob/master/src/manipulation.js#L234 decides that it can take the shortcut and use innerHTML. 2 2 3 What I'm saying is that this is incorrect. The jsFiddle test case sdemonstrates why.3 What I'm saying is that this is incorrect. The jsFiddle test case demonstrates why. 4 4 5 5 In case of {{{ .html(" line1\nline2") }}} it is (rightfully) decided that no shortcut can be taken (in IE). The same code path should be taken for my first example.