diff options
author | Steven Novaryo <65610990+stevennovaryo@users.noreply.github.com> | 2024-12-24 11:36:57 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-24 03:36:57 +0000 |
commit | d8b7195c751f417ec471dcf51244c6eebe33e010 (patch) | |
tree | 177288001c13fb431468d656ef9e7f855562cd96 /tests/wpt | |
parent | ac372cf2052bc302ac6eb474631971bd59af1461 (diff) | |
download | servo-d8b7195c751f417ec471dcf51244c6eebe33e010.tar.gz servo-d8b7195c751f417ec471dcf51244c6eebe33e010.zip |
Add check for valid custom element name in element::attach_shadow (#34749)
* Add valid custom element name check
Signed-off-by: stevennovaryo <steven.novaryo@gmail.com>
* Update wpt test expectation
Signed-off-by: stevennovaryo <steven.novaryo@gmail.com>
---------
Signed-off-by: stevennovaryo <steven.novaryo@gmail.com>
Diffstat (limited to 'tests/wpt')
11 files changed, 21 insertions, 25 deletions
diff --git a/tests/wpt/meta/css/selectors/invalidation/part-dir.html.ini b/tests/wpt/meta/css/selectors/invalidation/part-dir.html.ini index 282bbbc4feb..1a49bec1aaf 100644 --- a/tests/wpt/meta/css/selectors/invalidation/part-dir.html.ini +++ b/tests/wpt/meta/css/selectors/invalidation/part-dir.html.ini @@ -1,2 +1,6 @@ [part-dir.html] - expected: ERROR + [::part():dir() invalidation] + expected: FAIL + + [::part():dir() invalidation from setAttribute] + expected: FAIL diff --git a/tests/wpt/meta/css/selectors/invalidation/part-lang.html.ini b/tests/wpt/meta/css/selectors/invalidation/part-lang.html.ini index 397cee29510..43cf3f01230 100644 --- a/tests/wpt/meta/css/selectors/invalidation/part-lang.html.ini +++ b/tests/wpt/meta/css/selectors/invalidation/part-lang.html.ini @@ -1,2 +1,6 @@ [part-lang.html] - expected: ERROR + [::part():lang() invalidation] + expected: FAIL + + [::part():lang() invalidation from setAttribute] + expected: FAIL diff --git a/tests/wpt/meta/custom-elements/form-associated/ElementInternals-validation.html.ini b/tests/wpt/meta/custom-elements/form-associated/ElementInternals-validation.html.ini index f5db65164cf..fc8edf0cab7 100644 --- a/tests/wpt/meta/custom-elements/form-associated/ElementInternals-validation.html.ini +++ b/tests/wpt/meta/custom-elements/form-associated/ElementInternals-validation.html.ini @@ -1,6 +1,3 @@ [ElementInternals-validation.html] - ["anchor" argument of setValidity()] - expected: FAIL - [Custom control affects :valid :invalid for FORM and FIELDSET] expected: FAIL diff --git a/tests/wpt/meta/custom-elements/form-associated/disabled-delegatesFocus.html.ini b/tests/wpt/meta/custom-elements/form-associated/disabled-delegatesFocus.html.ini index 46943b32055..79baedc0b86 100644 --- a/tests/wpt/meta/custom-elements/form-associated/disabled-delegatesFocus.html.ini +++ b/tests/wpt/meta/custom-elements/form-associated/disabled-delegatesFocus.html.ini @@ -1,2 +1,3 @@ [disabled-delegatesFocus.html] - expected: ERROR + [Focus events fire on disabled form-associated custom elements with delegatesFocus] + expected: FAIL diff --git a/tests/wpt/meta/dom/nodes/moveBefore/tentative/slotchange-events.html.ini b/tests/wpt/meta/dom/nodes/moveBefore/tentative/slotchange-events.html.ini index 891a10d6042..a1c704d0690 100644 --- a/tests/wpt/meta/dom/nodes/moveBefore/tentative/slotchange-events.html.ini +++ b/tests/wpt/meta/dom/nodes/moveBefore/tentative/slotchange-events.html.ini @@ -1,5 +1,4 @@ [slotchange-events.html] - expected: ERROR [Moving default content into a slot fires 'slotchange' event] expected: FAIL diff --git a/tests/wpt/meta/html/dom/elements/global-attributes/translate-inherit-no-parent-element.html.ini b/tests/wpt/meta/html/dom/elements/global-attributes/translate-inherit-no-parent-element.html.ini deleted file mode 100644 index 42f3ddcbbbd..00000000000 --- a/tests/wpt/meta/html/dom/elements/global-attributes/translate-inherit-no-parent-element.html.ini +++ /dev/null @@ -1,6 +0,0 @@ -[translate-inherit-no-parent-element.html] - [ShadowRoot parent node whose shadow host has translate=yes] - expected: FAIL - - [ShadowRoot parent node whose shadow host has translate=no] - expected: FAIL diff --git a/tests/wpt/meta/shadow-dom/DocumentOrShadowRoot-prototype-elementFromPoint.html.ini b/tests/wpt/meta/shadow-dom/DocumentOrShadowRoot-prototype-elementFromPoint.html.ini index 6768ee2f80c..400218db28a 100644 --- a/tests/wpt/meta/shadow-dom/DocumentOrShadowRoot-prototype-elementFromPoint.html.ini +++ b/tests/wpt/meta/shadow-dom/DocumentOrShadowRoot-prototype-elementFromPoint.html.ini @@ -1,4 +1,5 @@ [DocumentOrShadowRoot-prototype-elementFromPoint.html] + expected: CRASH [document.elementFromPoint and shadow.ElementFromPoint must return the shadow host of the hit-tested text node when the hit-tested text node is a direct child of the root and the host has display: inline] expected: FAIL diff --git a/tests/wpt/meta/shadow-dom/Element-interface-attachShadow-custom-element.html.ini b/tests/wpt/meta/shadow-dom/Element-interface-attachShadow-custom-element.html.ini index 6fe5d3fea55..aa68710fb42 100644 --- a/tests/wpt/meta/shadow-dom/Element-interface-attachShadow-custom-element.html.ini +++ b/tests/wpt/meta/shadow-dom/Element-interface-attachShadow-custom-element.html.ini @@ -1,15 +1,6 @@ [Element-interface-attachShadow-custom-element.html] - [Element.attachShadow must create an instance of ShadowRoot for autonomous custom elements] - expected: FAIL - - [Element.attachShadow must create an instance of ShadowRoot for undefined autonomous custom elements] - expected: FAIL - [Element.attachShadow for an autonomous custom element with disabledFeatures=["shadow"\] should throw a NotSupportedError] expected: FAIL [Element.attachShadow for a customized built-in element with disabledFeatures=["shadow"\] should throw a NotSupportedError] expected: FAIL - - [Element.attachShadow for a custom element with disabledFeatures=["SHADOW"\] should not throw a NotSupportedError] - expected: FAIL diff --git a/tests/wpt/meta/shadow-dom/MouseEvent-prototype-offsetX-offsetY.html.ini b/tests/wpt/meta/shadow-dom/MouseEvent-prototype-offsetX-offsetY.html.ini index 5a34f035218..4b44502efa0 100644 --- a/tests/wpt/meta/shadow-dom/MouseEvent-prototype-offsetX-offsetY.html.ini +++ b/tests/wpt/meta/shadow-dom/MouseEvent-prototype-offsetX-offsetY.html.ini @@ -1,4 +1,4 @@ [MouseEvent-prototype-offsetX-offsetY.html] - expected: ERROR + expected: CRASH [MouseEvent's offsetX and offsetY attributes must be relative to the target.] expected: FAIL diff --git a/tests/wpt/meta/shadow-dom/innerHTML-setter.xhtml.ini b/tests/wpt/meta/shadow-dom/innerHTML-setter.xhtml.ini index 0fd47ee26c4..8d763a2f0f1 100644 --- a/tests/wpt/meta/shadow-dom/innerHTML-setter.xhtml.ini +++ b/tests/wpt/meta/shadow-dom/innerHTML-setter.xhtml.ini @@ -1,2 +1,6 @@ [innerHTML-setter.xhtml] - expected: ERROR + [InnerHTML behavior on custom element in default 'foo' namespace] + expected: FAIL + + [InnerHTML behavior with prefixes on custom element] + expected: FAIL diff --git a/tests/wpt/meta/shadow-dom/slotchange-customelements.html.ini b/tests/wpt/meta/shadow-dom/slotchange-customelements.html.ini index 501acdec58b..830cdaa2cac 100644 --- a/tests/wpt/meta/shadow-dom/slotchange-customelements.html.ini +++ b/tests/wpt/meta/shadow-dom/slotchange-customelements.html.ini @@ -1,2 +1,3 @@ [slotchange-customelements.html] - expected: ERROR + [slotchange must fire on initialization of custom elements with slotted children] + expected: FAIL |