script: Implement Element::GetHTML and ShadowRoot::GetHTML (#36106)

* Serialize html fragments without going through html5ever

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* Implement ShadowRoot::GetHtml / Element::GetHtml

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* Update WPT expectations

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* Propagate CanGc annotations

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

---------

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
Simon Wülker 2025-03-23 20:04:23 +01:00 committed by GitHub
parent 1c9f486f88
commit 19d5f5f06f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 286 additions and 15941 deletions

View file

@ -4613,12 +4613,6 @@
[DOMStringList interface: calling contains(DOMString) on location.ancestorOrigins with too few arguments must throw TypeError]
expected: FAIL
[Element interface: document.createElement("noscript") must inherit property "getHTML(optional GetHTMLOptions)" with the proper type]
expected: FAIL
[Element interface: calling getHTML(optional GetHTMLOptions) on document.createElement("noscript") with too few arguments must throw TypeError]
expected: FAIL
[Element interface: document.createElement("noscript") must inherit property "innerHTML" with the proper type]
expected: FAIL
@ -5918,12 +5912,6 @@
[ShadowRoot interface: operation setHTMLUnsafe((TrustedHTML or DOMString))]
expected: FAIL
[ShadowRoot interface: operation getHTML(optional GetHTMLOptions)]
expected: FAIL
[Element interface: operation getHTML(optional GetHTMLOptions)]
expected: FAIL
[OffscreenCanvasRenderingContext2D interface: operation getContextAttributes()]
expected: FAIL
@ -5966,12 +5954,6 @@
[OffscreenCanvasRenderingContext2D interface: attribute lang]
expected: FAIL
[Element interface: document.createElement("div") must inherit property "getHTML(optional GetHTMLOptions)" with the proper type]
expected: FAIL
[Element interface: calling getHTML(optional GetHTMLOptions) on document.createElement("div") with too few arguments must throw TypeError]
expected: FAIL
[Element interface: document.createElement("div") must inherit property "innerHTML" with the proper type]
expected: FAIL

View file

@ -1,2 +1,6 @@
[gethtml-ordering.html]
expected: ERROR
[template position]
expected: FAIL
[both template and attribute position]
expected: FAIL

File diff suppressed because it is too large Load diff