Changes between Initial Version and Version 1 of Ticket #11473, comment 4
- Timestamp:
- Mar 14, 2012, 8:34:59 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #11473, comment 4
initial v1 1 1 I 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? 2 2 3 {{{ 3 4 var p = $('<p><a>x</a></p>'); 4 5 var c = p.find('a'); 5 6 p.html(''); 6 7 console.log(c.html()); //should produce 'x' 8 }}}