mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
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>
This commit is contained in:
parent
ac372cf205
commit
d8b7195c75
13 changed files with 70 additions and 49 deletions
|
@ -1,2 +1,6 @@
|
|||
[part-dir.html]
|
||||
expected: ERROR
|
||||
[::part():dir() invalidation]
|
||||
expected: FAIL
|
||||
|
||||
[::part():dir() invalidation from setAttribute]
|
||||
expected: FAIL
|
||||
|
|
|
@ -1,2 +1,6 @@
|
|||
[part-lang.html]
|
||||
expected: ERROR
|
||||
[::part():lang() invalidation]
|
||||
expected: FAIL
|
||||
|
||||
[::part():lang() invalidation from setAttribute]
|
||||
expected: FAIL
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
[ElementInternals-validation.html]
|
||||
["anchor" argument of setValidity()]
|
||||
expected: FAIL
|
||||
|
||||
[Custom control affects :valid :invalid for FORM and FIELDSET]
|
||||
expected: FAIL
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
[disabled-delegatesFocus.html]
|
||||
expected: ERROR
|
||||
[Focus events fire on disabled form-associated custom elements with delegatesFocus]
|
||||
expected: FAIL
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
[slotchange-events.html]
|
||||
expected: ERROR
|
||||
[Moving default content into a slot fires 'slotchange' event]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -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
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
[slotchange-customelements.html]
|
||||
expected: ERROR
|
||||
[slotchange must fire on initialization of custom elements with slotted children]
|
||||
expected: FAIL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue