Skip to content

Introduce new extended attribute grammars #1503

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

lukewarlow
Copy link
Member

@lukewarlow lukewarlow commented Jul 14, 2025

Introduce four new extended attribute grammars

These new grammars will be used by the HTML spec for attribute reflection extended attributes. ExtendedAttributeString ([Reflect="foo"]), ExtendedAttributeInteger ([ReflectDefault=1]), ExtendedAttributeDecimal ([ReflectDefault=1.0]) and ExtendedAttributeIntegerList ([ReflectRange=(1,100)]) are added.

(See WHATWG Working Mode: Changes for more details.)


Preview | Diff

These new grammars will be used by the HTML spec for attribute reflection extended attributes.
Copy link
Member

@domenic domenic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good with nit, although I presume we shouldn't merge this until we're sure they're going to be used.

@lukewarlow
Copy link
Member Author

I presume we shouldn't merge this until we're sure they're going to be used.

Yeah I think it makes sense to wait until at least the non-enum IDL reflection stuff is agreed upon. That uses all 3 of these new grammars.

@lukewarlow lukewarlow marked this pull request as ready for review July 17, 2025 11:54
@lukewarlow lukewarlow changed the title Introduce three new extended attribute grammars Introduce new extended attribute grammars Jul 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants