-
vivek.vg@samsung.com authored
https://bugs.webkit.org/show_bug.cgi?id=120826 Reviewed by Darin Adler. Source/WebCore: The specification http://domparsing.spec.whatwg.org/#the-domparser-interface for DOMParser.parseFromString() allows the document creation if the mimeType is one of the supported types: ["text/html", "text/xml", "application/xml", "application/xhtml+xml", "image/svg+xml"] Also script elements get marked unexecutable and the contents of noscript get parsed as markup. blink review URL: https://codereview.chromium.org/23903014/ Test: fast/dom/domparser-parsefromstring-mimetype-support.html * xml/DOMParser.cpp: (WebCore::DOMParser::parseFromString): LayoutTests: * fast/dom/domparser-parsefromstring-mimetype-support-expected.txt: Added. * fast/dom/domparser-parsefromstring-mimetype-support.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155584 268f45cc-cd09-0410-ab3c-d52691b4dbfc
7bd2414a