Add part attribute and note that part and exportparts are superglobal #1372
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.
part
andexportparts
were 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 addpart
as a superglobal attribute to the DOM spec. This PR also notes thatexportparts
is 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.role
andaria-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