This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 15866 - Support HTML parsing in DOMParser
Summary: Support HTML parsing in DOMParser
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: DOM Parsing and Serialization (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: Ms2ger
QA Contact: public-webapps-bugzilla
Depends on:
Reported: 2012-02-03 13:23 UTC by Henri Sivonen
Modified: 2012-02-04 11:38 UTC (History)
2 users (show)

See Also:


Description Henri Sivonen 2012-02-03 13:23:50 UTC

Please specify that when the MIME type argument to parseFromString is "text/html", the other argument gets parsed as HTML in the non-fragment mode with scripting disabled (<script> elements get marked unexecutable and the contents of <noscript> get parsed as markup). Regardless of <meta>s, the resulting document reports UTF-8 as its encoding. What the compatMode property of the resulting document reports depends on doctype as usual.

This is implemented in Firefox 12 and up.
Comment 1 Ms2ger 2012-02-03 20:46:58 UTC
Thanks. Let me know if I need anything else.
Comment 2 Henri Sivonen 2012-02-04 11:38:56 UTC
Looks good. Thanks.