Defining options for the select element using the .innerHTML method still fails using IE 9.0 Third Platform Preview - by Mathieu Pellerin

Status : 

  Postponed<br /><br />
		Due to current priorities, the product team decided to postpone the resolution of this item.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

ID 571341 Comments
Status Closed Workarounds
Type Bug Repros 5
Opened 6/28/2010 1:56:14 AM
Duplicates 642371 Access Restriction Public


Can the IE team please commit to fix this outstanding issue that has been plaguing IE since version 5.0?
Sign in to post a comment.
Posted by the_dees on 7/1/2011 at 8:03 AM
Yes, innerHTML appears to be completely fixed as of IE10, Preview 2.
Posted by J.Major on 6/30/2011 at 5:35 AM
This seems to be fixed in IE10 PP2.
Posted by the_dees on 5/17/2011 at 10:08 AM
Please reopen this issue to be fixed in IE10.
Posted by the_dees on 2/10/2011 at 1:50 PM
It is most unfortunate that this was reverted back to IE8's state.
Posted by unique_username on 1/10/2011 at 6:56 AM
HTML5's HTMLElement.innerHTML is still broken in IE9 Platform Preview 7 for Select, Optgroup, Table, Head, Title, Html, Tbody, Thead, Tfoot, Tr (& possibly others (I haven't checked Video, Audio, Object, etc.))

Please advise when the ETA is for a fix.
Posted by Microsoft on 11/30/2010 at 3:16 PM
Thank you for your feedback.

At this time we do not plan to fix this issue.

Some elements (like <select>) have special behaviors that can complicate things for innerHTML. Internet Explorer's implementation of innerHTML doesn’t have contextual knowledge of the calling element, which can lead to issues in some cases. For example, a call to select.innerHTML = “<option></option>” is problematic for IE, because an <option> element needs a <select>, but IE doesn't have the calling context to know that the <option> element would actually end up in one.

While we don’t have enough time to implement an innerHTML context stack for IE 9, we realize this is an important issue to developers, so we’re going to investigate fixing it for a future release.

We continue to welcome more feedback, so please don't hesitate to report other ways that we can improve Internet Explorer.

Best regards,

The Internet Explorer Team
Posted by the_dees on 11/13/2010 at 1:51 PM
Please note:

Currently, only the very basic operation of innerHTML on select elements appears to work (setting the innerHTML of an option element).

However, contrary to IE8, innerHTML on optgroup and select are now malfunctioning; the elements that are part of the select element are dropped from innerHTML.


This is basically the same issue table elements suffer from, see issue #600942 (setting innerHTML on table elements does not work - Take 2).
Posted by kangax on 8/5/2010 at 6:20 AM
This still happens with 4th preview.
Posted by Microsoft on 7/19/2010 at 6:53 PM
Thank you for your feedback. We were able to reproduce the issue and are investigating this.

Best regards,

The IE Team