Bug 15866 - Support HTML parsing in DOMParser
Summary: Support HTML parsing in DOMParser
Status: VERIFIED FIXED
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
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-03 13:23 UTC by Henri Sivonen
Modified: 2012-02-04 11:38 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henri Sivonen 2012-02-03 13:23:50 UTC
http://html5.org/specs/dom-parsing.html#the-domparser-interface

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.

https://bitbucket.org/ms2ger/dom-parsing-and-serialization/changeset/e978cc42a8b2
Comment 2 Henri Sivonen 2012-02-04 11:38:56 UTC
Looks good. Thanks.