Use "slot" attribute for slottable name (#35191)

* Implement Element::slot attribute

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

* Simplify slottable name update

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

* Update WPT expectations

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-01-29 13:50:03 +01:00 committed by GitHub
parent c633ca1cde
commit f6d1b30e97
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 18 additions and 98 deletions

View file

@ -1,6 +0,0 @@
[Element.html]
[slot on Element must enqueue an attributeChanged reaction when adding slot content attribute]
expected: FAIL
[slot on Element must enqueue an attributeChanged reaction when replacing an existing attribute]
expected: FAIL

View file

@ -56,9 +56,6 @@
[CharacterData interface: operation remove()]
expected: FAIL
[Element interface: element must inherit property "slot" with the proper type]
expected: FAIL
[AbortController interface: new AbortController() must inherit property "signal" with the proper type]
expected: FAIL

View file

@ -8,15 +8,6 @@
[assignedNodes({"flattened":true}) must return the list of assigned nodes when none of the assigned nodes themselves are slots]
expected: FAIL
[assignedNodes() must update when slot and name attributes are modified]
expected: FAIL
[assignedNodes({"flattened":false}) must update when slot and name attributes are modified]
expected: FAIL
[assignedNodes({"flattened":true}) must update when slot and name attributes are modified]
expected: FAIL
[assignedNodes() must update when slot elements are inserted or removed]
expected: FAIL

View file

@ -1,3 +0,0 @@
[Slottable-mixin.html]
[assignedSlot must return the assigned slot]
expected: FAIL

View file

@ -3,8 +3,5 @@
[slotchange event: Append a child to a host.]
expected: TIMEOUT
[slotchange event: A slot is assigned to another slot.]
expected: TIMEOUT
[slotchange event: Child content is added to nested slots.]
expected: TIMEOUT

View file

@ -31,3 +31,6 @@
[Slots: Mutation: Change slot slot= attribute.]
expected: FAIL
[Slots: Mutation: Remove a slot.]
expected: FAIL