From 7b0b6ad679e275d15fd3f550a5ee2ecb523480ea Mon Sep 17 00:00:00 2001 From: Daniel Ethridge Date: Sun, 18 May 2025 03:53:15 +0000 Subject: [PATCH] Add part attribute and note that part and exportparts are superglobal --- dom.bs | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/dom.bs b/dom.bs index 491e2691..9d7b0741 100644 --- a/dom.bs +++ b/dom.bs @@ -6514,6 +6514,7 @@ interface Element : Node { [CEReactions] attribute DOMString className; [SameObject, PutForwards=value] readonly attribute DOMTokenList classList; [CEReactions, Unscopable] attribute DOMString slot; + [SameObject, PutForwards=value] readonly attribute DOMTokenList part; boolean hasAttributes(); [SameObject] readonly attribute NamedNodeMap attributes; @@ -7152,6 +7153,10 @@ claims as to whether using them is conforming or not.
element . slot [ = value ]

Returns the value of element's slot content attribute. Can be set to change it. + +

element . part +

Allows for manipulation of element's part content attribute as a + set of whitespace-separated tokens through a {{DOMTokenList}} object.

IDL attributes that are defined to reflect a string @@ -7182,9 +7187,14 @@ particular {{DOMTokenList}} object are also known as the element's

The slot attribute must reflect "slot". -

id, class, and slot are effectively -superglobal attributes as they can appear on any element, regardless of that element's -namespace.

+

The part getter steps are to return a +{{DOMTokenList}} object whose associated element is this and whose associated +attribute's local name is part. The token set of this +particular {{DOMTokenList}} object are also known as the element's parts. + +

id, class, slot, part, and +exportparts are effectively superglobal attributes as they can appear on any element, +regardless of that element's namespace.


@@ -10836,6 +10846,7 @@ Chris Rebert, Cyrille Tuzi, Dan Burzo, Daniel Clark, +Daniel Ethridge, Daniel Glazman, Darien Maillet Valentine, Darin Fisher,