Add part attribute and note that part and exportparts are superglobal#1372
Open
wlib wants to merge 1 commit intowhatwg:mainfrom
Open
Add part attribute and note that part and exportparts are superglobal#1372wlib wants to merge 1 commit intowhatwg:mainfrom
wlib wants to merge 1 commit intowhatwg:mainfrom
Conversation
annevk
reviewed
May 19, 2025
Member
annevk
left a comment
There was a problem hiding this comment.
Doing this makes sense to me. However:
- We need to remove these requirements from the original specification in a PR linked from the commit message.
- We need to mention these attributes in HTML in the same place we mention id, class, and slot today (can also be a PR linked from the commit message).
- Do these attributes have no steps to perform when they are manipulated?
- We should consider, as a follow-up, to introduce a dedicated section on super global attributes to make the concept more formal and also to give some descriptions on the semantics of these attributes as that's currently missing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
partandexportpartswere the (I hope) only two attributes that I missed in https://github.com/wlib/html-info due to them not appearing in the spec. There was an issue filed in 2018 asking to addpartas a superglobal attribute to the DOM spec. This PR also notes thatexportpartsis a superglobal attribute, but does not make any references to its functionality. I want to ask whether this PR is desirable in the first place because other attributes like those defined in ARIA (e.g.roleandaria-label) also are superglobal with corresponding IDL attributes defined onElement. I think that having a table that indexes all of the attributes in one place would be desirable, but it's unclear which spec such an index should live in.(See WHATWG Working Mode: Changes for more details.)
Preview | Diff