Bug Tracker

Changes between Initial Version and Version 1 of Ticket #11473, comment 4


Ignore:
Timestamp:
Mar 14, 2012, 8:34:59 PM (6 years ago)
Author:
braddunbar
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11473, comment 4

    initial v1  
    11I agree, all nodes and their references will be cleared.  However, their innerHTML should not be altered.  For instance, if element `c` is a child of element `p`, calling `p.html('')` should leave the innerHTML of `c` unaltered.  Is this not correct?
    22
     3{{{
    34var p = $('<p><a>x</a></p>');
    45var c = p.find('a');
    56p.html('');
    67console.log(c.html()); //should produce 'x'
     8}}}