This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Section: http://www.whatwg.org/specs/web-apps/current-work/#innerhtml Comment: It doesn't look like any browser supports document.innerHTML Posted from: 81.245.240.211 by ms2ger@gmail.com
It's a new feature.
Given that DOMParser already exists on the XML side and we prefer XHR over Document.load(), I'd like to see the rationale for introducing this new feature instead of making DOMParser support text/html.
Fair enough. We are probably stuck with DOMParser...
The situation for .load is significantly different since it changes the URI of an existing document. At least it raises confusion about what the URI should be. I see value in being able to replace the contents of an existing document without having to use document.open hacks or having to manually set up a root element and then use innerHTML on that.
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document: http://dev.w3.org/html5/decision-policy/decision-policy.html Status: Rejected Change Description: no spec change Rationale: DOMParser is way more complicated than necessary.