Bug Tracker

Changes between Initial Version and Version 1 of Ticket #7138, comment 7


Ignore:
Timestamp:
Nov 11, 2010, 10:37:57 AM (9 years ago)
Author:
timmolendijk
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7138, comment 7

    initial v1  
    11In 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.
    22
    3 What I'm saying is that this is incorrect. The jsFiddle test cases demonstrates why.
     3What I'm saying is that this is incorrect. The jsFiddle test case demonstrates why.
    44
    55In 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.