setting innerHTML on table elements does not work - Take 2 - by the_dees

Status : 

  Fixed<br /><br />
		This item has been fixed in the current or upcoming version of this product.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

ID 600942 Comments
Status Closed Workarounds
Type Bug Repros 5
Opened 9/18/2010 2:13:31 AM
Access Restriction Public


Setting innerHTML on table, colgroup, thead, tfoot, tbody, and tr elements in HTML does not work correctly.

Public testcase:

This is take 2 of issue #582525

innerHTML still does not work correctly on table elements (and the current state is more dangerouns because incorrectly working features are more difficult to work around than not working features).

The issue is that whenever innerHTML is set on table, colgroup, thead, tfoot, tbody, or tr elements, table elements inside the innerHTML are dropped, creating an incorrect DOM.
Sign in to post a comment.
Posted by the_dees on 7/1/2011 at 8:02 AM
Great, in IE10, Preview 2, this issue is completely fixed.
Posted by the_dees on 2/10/2011 at 1:09 PM
It is most unfortunate that this was reverted back to IE8's state.
Posted by the_dees on 11/13/2010 at 1:53 PM
Please note: The select element (and related elements) also suffer from this issue.

See testcase:
and report #571341 (Defining options for the select element using the .innerHTML method still fails using IE 9.0 Third Platform Preview).
Posted by Microsoft on 11/1/2010 at 8:51 PM
Thank you for your feedback.

We were able to reproduce the issue and are investigating it.

Best regards,

The Internet Explorer Team
Posted by unique_username on 11/1/2010 at 7:48 AM
IE9 will need to fix this long standing IE bug in order to properly claim IE9 as HTML5 compliant.

If possible a backport to IE8 would be great too.
Posted by the_dees on 10/30/2010 at 8:56 AM
This issue is still present in Platform Preview 6.

As long as innerHTML on Table elements is malfunctioning like this (test 1 and 8-15 fail) it will be even more unusable than it was when it wasn't supported at all on table elements.