LibWeb: Set correct content and document types in DOMParser

It appears this was removed by accident in an earlier commit, regressing
the included WPT test.
This commit is contained in:
Veeti Paananen
2025-07-09 08:29:06 +03:00
committed by Shannon Booth
parent bfa978c501
commit c834c594ac
Notes: github-actions[bot] 2025-07-09 08:11:21 +00:00
3 changed files with 103 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
Harness status: OK
Found 10 tests
10 Pass
Pass Parsing of id attribute
Pass contentType
Pass compatMode
Pass compatMode for a proper DOCTYPE
Pass Location value
Pass DOMParser parses HTML tag soup with no problems
Pass DOMParser should handle the content of <noembed> as raw text
Pass DOMParser throws on an invalid enum value
Pass script is found synchronously even when there is a css import
Pass must be parsed with scripting disabled, so noscript works