mirror of
https://github.com/servo/servo.git
synced 2025-09-30 00:29:14 +01:00
Implement declarative shadow dom (#34964)
* Implement declarative shadow dom Signed-off-by: batu_hoang <longvatrong111@gmail.com> * Set allowDeclarativeShadowRoots false for innerHTML Signed-off-by: batu_hoang <longvatrong111@gmail.com> * Enable allowDeclarativeShadowRoots for Document Signed-off-by: batu_hoang <longvatrong111@gmail.com> * Expose HTMLTemplateElement to js Signed-off-by: batu_hoang <longvatrong111@gmail.com> * Implemenet setHTMLUnsafe and add more test cases Signed-off-by: batu_hoang <longvatrong111@gmail.com> * Declarative shadow dom: minor updates and expected test result update Signed-off-by: batu_hoang <longvatrong111@gmail.com> * Shadow-dom: add more test cases Signed-off-by: batu_hoang <longvatrong111@gmail.com> * Update comments according to the spec Signed-off-by: batu_hoang <longvatrong111@gmail.com> * Bump html5ever version Signed-off-by: batu_hoang <longvatrong111@gmail.com> --------- Signed-off-by: batu_hoang <longvatrong111@gmail.com>
This commit is contained in:
parent
f483a3d34b
commit
28c8c1df0c
44 changed files with 360 additions and 1965 deletions
|
@ -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 "setHTMLUnsafe((TrustedHTML or DOMString))" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Element interface: calling setHTMLUnsafe((TrustedHTML or DOMString)) on document.createElement("noscript") 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
|
||||
|
||||
|
@ -5927,9 +5921,6 @@
|
|||
[ShadowRoot interface: operation getHTML(optional GetHTMLOptions)]
|
||||
expected: FAIL
|
||||
|
||||
[Element interface: operation setHTMLUnsafe((TrustedHTML or DOMString))]
|
||||
expected: FAIL
|
||||
|
||||
[Element interface: operation getHTML(optional GetHTMLOptions)]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -5975,12 +5966,6 @@
|
|||
[OffscreenCanvasRenderingContext2D interface: attribute lang]
|
||||
expected: FAIL
|
||||
|
||||
[Element interface: document.createElement("div") must inherit property "setHTMLUnsafe((TrustedHTML or DOMString))" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[Element interface: calling setHTMLUnsafe((TrustedHTML or DOMString)) on document.createElement("div") with too few arguments must throw TypeError]
|
||||
expected: FAIL
|
||||
|
||||
[Element interface: document.createElement("div") must inherit property "getHTML(optional GetHTMLOptions)" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -7810,30 +7795,6 @@
|
|||
[HTMLScriptElement interface: calling supports(DOMString) on document.createElement("script") with too few arguments must throw TypeError]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLTemplateElement interface: attribute shadowRootMode]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLTemplateElement interface: attribute shadowRootDelegatesFocus]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLTemplateElement interface: attribute shadowRootClonable]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLTemplateElement interface: attribute shadowRootSerializable]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLTemplateElement interface: document.createElement("template") must inherit property "shadowRootMode" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLTemplateElement interface: document.createElement("template") must inherit property "shadowRootDelegatesFocus" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLTemplateElement interface: document.createElement("template") must inherit property "shadowRootClonable" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLTemplateElement interface: document.createElement("template") must inherit property "shadowRootSerializable" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[HTMLMarqueeElement interface: existence and properties of interface object]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
[form-indexed-element-shadow.html]
|
||||
[form.elements: indexed access reflects DOM order, not flat tree]
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[template-shadowrootmode-img-src.tentative.html]
|
||||
[Speculative parsing, page load: template-shadowrootmode-img-src]
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[template-shadowrootmode-link-stylesheet.tentative.html]
|
||||
[Speculative parsing, page load: template-shadowrootmode-link-stylesheet]
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[template-shadowrootmode-script-src.tentative.html]
|
||||
[Speculative parsing, page load: template-shadowrootmode-script-src]
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[Element-setHTMLUnsafe-04.html]
|
||||
[setHTMLUnsafe should leave the removed children alone.]
|
||||
expected: FAIL
|
|
@ -1,6 +1,3 @@
|
|||
[setHTMLUnsafe-CEReactions.html]
|
||||
[Element.setHTMLUnsafe should trigger custom element reactions.]
|
||||
expected: FAIL
|
||||
|
||||
[ShadowRoot.setHTMLUnsafe should trigger custom element reactions.]
|
||||
expected: FAIL
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
[setHTMLUnsafe-xml.html]
|
||||
[setHTMLUnsafe should still parse HTML even in XML documents.]
|
||||
expected: FAIL
|
||||
|
||||
[setHTMLUnsafe should still parse HTML even in SVG documents.]
|
||||
expected: FAIL
|
|
@ -1,15 +1,6 @@
|
|||
[setHTMLUnsafe.html]
|
||||
[Element: setHTMLUnsafe with no shadowdom.]
|
||||
expected: FAIL
|
||||
|
||||
[Element: setHTMLUnsafe with shadowdom.]
|
||||
expected: FAIL
|
||||
|
||||
[ShadowRoot: setHTMLUnsafe with no shadowdom.]
|
||||
expected: FAIL
|
||||
|
||||
[ShadowRoot: setHTMLUnsafe with shadowdom.]
|
||||
expected: FAIL
|
||||
|
||||
[template.setHTMLUnsafe() should modify template content fragment rather than actual children.]
|
||||
expected: FAIL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue