In 2.0beta1, using html() function on a tbody selector yields insertion of new tbody
|Reported by:||bhs.jquery@…||Owned by:||markelog|
When a tbody is selected and then new DOM elements (rows, data cells) are inserted via a call to html(), jQuery 2.0beta1 appears to insert a new tbody. Perhaps when the rows are created, before the resulting structure is added to the document, a containing tbody is created?
The effect can be witnessed here: http://jsfiddle.net/VDTjz/1/
The second row should not be red. Switching back to jQuery 1.9 yields the expected result, a blue second row.
Change History (4)
comment:1 Changed 4 years ago by markelog
- Component changed from unfiled to manipulation
- Milestone changed from None to 2.0
- Owner set to markelog
- Status changed from new to assigned
comment:3 Changed 4 years ago by Oleg
- Resolution set to fixed
- Status changed from assigned to closed