domparsing

edit

WPT coverage of the tests of domparsing at the revision 5602b0f210e3. The tests link to their results in the browsers on wpt.fyi. The tentative tests (experimental features) and the reftests are listed separately from the stable tests.

GroupPassingTestsDisabledPass rate
Stable5256093%
Tentative3639092%
Reftests000–
All8895093%

Failure reasons

The tests that do not pass (failing or disabled), by kind of reason. A test with several reasons counts once per kind.

  • TEST BUG: 4
  • NOT IMPLEMENTED: 3

Stable tests

TestResultSubtestsKindDescription
Comment-serialization-double-hyphen.htmlPass3 / 3
DOMParser-parseFromString-encoding.htmlPass4 / 4
DOMParser-parseFromString-html.htmlPass10 / 10
DOMParser-parseFromString-stylesheets.htmlPass6 / 6
DOMParser-parseFromString-url-base-about.window.jsPass2 / 2
DOMParser-parseFromString-url-base-pushstate.htmlPass45 / 45
DOMParser-parseFromString-url-base.htmlPass45 / 45
DOMParser-parseFromString-url-moretests.htmlPass31 / 31
DOMParser-parseFromString-url-pushstate.htmlPass45 / 45
DOMParser-parseFromString-url.htmlPass45 / 45
DOMParser-parseFromString-xml-CDATA.htmlPass8 / 8
DOMParser-parseFromString-xml-doctype.htmlPass3 / 3
DOMParser-parseFromString-xml-empty-nodes.htmlPass8 / 8
DOMParser-parseFromString-xml-internal-subset.htmlPass1 / 1
DOMParser-parseFromString-xml-parsererror.htmlPass23 / 23
DOMParser-parseFromString-xml-scripting-support-disabled.htmlPass13 / 13
DOMParser-parseFromString-xml.htmlPass20 / 20
DOMParser-xml-character-entities.htmlPass8 / 8
XMLSerializer-serializeToString.htmlFail30 / 33TEST BUG3 subtests contradict the DOM Parsing specification, which keeps the prefix of an attribute when the local prefixes map does not contain it (instead of generating ns1), and ignores a default namespace declaration (xmlns="") equal to the inherited namespace
createContextualFragment-external-scripts-async.htmlPass1 / 1
createContextualFragment-xhtml.xhtmlPass4 / 4
createContextualFragment.htmlPass35 / 35
domparser-spurious-attributes.htmlPass2 / 2
html-insertion-methods-html-element.htmlPass26 / 26
html-unsafe-external-scripts-async.htmlError12 / 15TEST BUGthe ShadowRoot.*HTMLUnsafe subtests cannot pass: document.currentScript is null while a script of a shadow tree runs (https://html.spec.whatwg.org/#execute-the-script-element), so resources/slow.js throws reading document.currentScript.src and never resolves the promise the subtest waits for
innerhtml-01.xhtmlPass2 / 2
innerhtml-03.xhtmlPass8 / 8
innerhtml-04.htmlPass1 / 1
innerhtml-05.xhtmlFail0 / 1TEST BUGoutdated test: the data: URL iframe has an opaque origin, so reading window[0].document throws (as in the browsers)
innerhtml-06.htmlPass1 / 1
innerhtml-07.htmlPass5 / 5
innerhtml-08.htmlPass2 / 2
innerhtml-empty-document-element.htmlPass1 / 1
innerhtml-li-autoclosing.htmlPass7 / 7
innerhtml-mxss.sub.htmlPass60 / 60
insert-adjacent-parent-errors.htmlPass7 / 7
insert-adjacent.htmlPass4 / 4
insert_adjacent_html-xhtml.xhtmlPass30 / 30
insert_adjacent_html.htmlPass31 / 31
outerhtml-01.htmlPass1 / 1
outerhtml-02.htmlPass5 / 5
outerhtml-03.htmlPass4 / 4
parsed-document-origin.window.jsPass7 / 7
positional-html-into-script-safe.htmlPass91 / 91
positional-methods-with-parser-options.htmlPass284 / 284
positional-methods-with-trusted-types-no-createParserOptions.htmlPass180 / 180
positional-methods-with-trusted-types.htmlPass355 / 355
positional-methods.htmlPass480 / 480
positional-template-child.htmlPass6 / 6
stream-html-reentrancy.htmlFail12 / 21NOT IMPLEMENTEDthe parser-blocking scripts of the streaming HTML methods (the parser does not pause for an external script streamed with runScripts)
style_attribute_html.htmlPass4 / 4
svg-template.htmlPass2 / 2
unsafe-and-trusted-types-external-scripts-async.htmlPass12 / 12
xml-parse-serialize-roundtrip.htmlPass2 / 2
xml-serialization.xhtmlPass17 / 17
xmldomparser.htmlPass1 / 1

Tentative tests

TestResultSubtestsKindDescription
tentative/all-stream-methods-with-trusted-types-no-policy.htmlPass12 / 12
tentative/positional-methods-with-parser-options.htmlFail150 / 160TEST BUGthe (runScripts=false => true) subtests expect the scripts to stay disabled when the createParserOptions callback of the default policy enables them: the options it returns determine runScripts, whatever the options of the caller (https://w3c.github.io/trusted-types/dist/spec/#get-trusted-type-compliant-parser-options); fixed upstream (web-platform-tests/wpt@b5daf96de8, "Apply latest spec changes for createParserOptions")
tentative/positional-methods-with-trusted-types.htmlPass91 / 91
tentative/positional-methods.htmlPass378 / 378
tentative/positional-template-child.htmlPass12 / 12
tentative/stream-append-html-unsafe.htmlPass14 / 14
tentative/stream-append-html.htmlPass17 / 17
tentative/stream-fragment-context.htmlPass54 / 54
tentative/stream-html-abort-unblocks-rendering.htmlPass1 / 1
tentative/stream-html-custom-element-sanitizer.htmlPass80 / 80
tentative/stream-html-custom-element.htmlPass40 / 40
tentative/stream-html-defer-async-script.htmlFail8 / 12NOT IMPLEMENTEDthe defer and async scripts of the streaming HTML methods: with runScripts, a streamed script runs when its end tag is parsed, as a script inserted by a script
tentative/stream-html-element.htmlPass28 / 28
tentative/stream-html-parser-blocking-script.htmlError8 / 26NOT IMPLEMENTEDthe parser-blocking scripts of the streaming HTML methods (the parser does not pause for an external script streamed with runScripts)
tentative/stream-html-run-scripts-option.htmlPass14 / 14
tentative/stream-html-sanitizer-safe.htmlPass30 / 30
tentative/stream-html-sanitizer.htmlPass276 / 276
tentative/stream-html-script-safe.htmlPass36 / 36
tentative/stream-html-unsafe.htmlPass17 / 17
tentative/stream-html-with-declarative-shadow-root.htmlPass37 / 37
tentative/stream-html-with-trusted-types-adopt.htmlPass24 / 24
tentative/stream-html-with-trusted-types-createParserOptions-order.htmlPass5 / 5
tentative/stream-html-with-trusted-types-error-in-policy.htmlPass6 / 6
tentative/stream-html-with-trusted-types-from-non-tt.htmlPass12 / 12
tentative/stream-html-with-trusted-types-no-createParserOptions.htmlPass10 / 10
tentative/stream-html-with-trusted-types-no-policy.htmlPass10 / 10
tentative/stream-html-with-trusted-types-pass-trusted.htmlPass10 / 10
tentative/stream-html-with-trusted-types-runScripts-cannot-be-turned-on.htmlPass10 / 10
tentative/stream-html-with-trusted-types-runScripts-off.htmlPass10 / 10
tentative/stream-html-with-trusted-types-sanitizer.htmlPass20 / 20
tentative/stream-html.htmlPass16 / 16
tentative/stream-insertion-logic.htmlPass70 / 70
tentative/stream-positional-template-child.htmlPass12 / 12
tentative/stream-positional.htmlPass88 / 88
tentative/stream-sanitizer-customized-builtins.htmlPass30 / 30
tentative/stream-sanitizer-img-ctor.htmlPass65 / 65
tentative/stream-sanitizer-resource-fetch.htmlPass18 / 18
tentative/stream-tokenizer-context.htmlPass45 / 45
tentative/unclosed-script-already-started.htmlPass4 / 4