Side navigation
#13232 closed bug (fixed)
Opened January 16, 2013 03:12PM UTC
Closed January 20, 2013 11:33PM UTC
Last modified January 21, 2013 04:26PM UTC
In 2.0beta1, using html() function on a tbody selector yields insertion of new tbody
Reported by: | bhs.jquery@tsotech.com | Owned by: | markelog |
---|---|---|---|
Priority: | undecided | Milestone: | 2.0 |
Component: | manipulation | Version: | 2.0b1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
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.
Attachments (0)
Change History (4)
Changed January 16, 2013 06:18PM UTC by comment:1
component: | unfiled → manipulation |
---|---|
milestone: | None → 2.0 |
owner: | → markelog |
status: | new → assigned |
Thank you for checking it out.
PR request – https://github.com/jquery/jquery/pull/1138