domparsing

edit

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

GroupPassingTestsDisabledPass rate
Stable9094096%
Tentative220100%
Reftests000–
Crash tests330100%
All9599096%

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: 2
  • NOT IMPLEMENTED: 2

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
all-stream-methods-with-trusted-types-no-policy.htmlPass38 / 38
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.htmlPass15 / 15
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-append-html-unsafe.htmlPass14 / 14
stream-append-html.htmlPass17 / 17
stream-fragment-context.htmlPass81 / 81
stream-html-abort-unblocks-rendering-defer.htmlPass1 / 1
stream-html-abort-unblocks-rendering.htmlPass1 / 1
stream-html-custom-element-sanitizer.htmlPass122 / 122
stream-html-custom-element.htmlPass59 / 59
stream-html-defer-async-script.htmlPass15 / 15
stream-html-disconnected-target-scripts.htmlPass4 / 4
stream-html-element.htmlPass28 / 28
stream-html-live-document.htmlPass9 / 9
stream-html-parser-blocking-script.htmlPass29 / 29
stream-html-reentrancy.htmlFail34 / 40NOT IMPLEMENTED6 subtests: the upgrade of a customized built-in template element by the backup element queue (at a microtask checkpoint) when it is streamed: the streaming parser runs the custom element constructors synchronously when it creates the elements, so the constructor runs before the declarative shadow root is attached or before the content of <template for> is patched (the proposal creates the elements of a fragment parser without running their constructor, whatwg/html#12758)
stream-html-run-scripts-option.htmlPass30 / 30
stream-html-sanitizer-safe.htmlPass30 / 30
stream-html-sanitizer.htmlPass338 / 338
stream-html-script-safe.htmlPass36 / 36
stream-html-stylesheet-does-not-block-scripts.htmlPass9 / 9
stream-html-unsafe.htmlPass18 / 18
stream-html-with-declarative-shadow-root.htmlPass49 / 49
stream-html-with-trusted-types-createParserOptions-order.htmlPass19 / 19
stream-html-with-trusted-types-error-in-policy.htmlPass13 / 13
stream-html-with-trusted-types-no-createParserOptions.htmlPass12 / 12
stream-html-with-trusted-types-pass-trusted.htmlPass18 / 18
stream-html-with-trusted-types-report-only.htmlPass24 / 24
stream-html-with-trusted-types-reporting.htmlPass24 / 24
stream-html-with-trusted-types-runScripts-can-be-turned-on.htmlPass6 / 6
stream-html-with-trusted-types-runScripts-off.htmlPass12 / 12
stream-html-with-trusted-types-sanitizer.htmlPass24 / 24
stream-html.htmlPass18 / 18
stream-insertion-logic.htmlFail149 / 153NOT IMPLEMENTED4 subtests (one per method with a reference child): a script element streamed into a replaceWithChildrenElements element that is foster-parented before a table, which the script moves out of the target: the script ends up after the nodes inserted before the reference child instead of before them (the location of the replaced element is not kept when its table is moved)
stream-positional-template-child.htmlPass12 / 12
stream-positional.htmlPass142 / 142
stream-sanitizer-customized-builtins.htmlPass30 / 30
stream-sanitizer-img-ctor.htmlPass78 / 78
stream-sanitizer-resource-fetch.htmlPass42 / 42
stream-tokenizer-context.htmlPass49 / 49
style_attribute_html.htmlPass4 / 4
svg-template.htmlPass2 / 2
unclosed-script-already-started.htmlPass4 / 4
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
stream-html-with-trusted-types-adopt.tentative.htmlPass24 / 24
stream-html-with-trusted-types-from-non-tt.tentative.htmlPass12 / 12

Crash tests

TestResultVariantsKindDescription
createContextualFragment-in-detached-xml-document-crash.htmlPass1 / 1
insert_adjacent_html-001-crash.htmlPass1 / 1
move-head-during-prepend-before-close-crash.htmlPass1 / 1