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
Arguments allow double extended attributes #691
Comments
This seems like something we should get rid of. |
I'm not sure I understand what the problem is.
In the former case ( In the latter case ( The fact that you can have extended attributes on the argument itself is intentional; while Web IDL itself does not currently define any such extended attributes, consumers of Web IDL might. |
@bzbarsky So you mean |
No, it's not. We should probably fix the propagation to only happen for non-optional arguments... |
@domenic thoughts on #691 (comment) ? |
So that'd be modifying step 4 of https://heycam.github.io/webidl/#idl-type-extended-attribute-associated-with ? Seems reasonable to me. |
Note that this also applies to dictionary members:
like |
Looks like the step 4 and 5 already makes the propagation to only happen for non-optional/non-required members, as:
... a direct Type production currently means no |
Currently the syntactic item
Argument
is defined as above, syntactically allowing double extended attributes only for optional arguments but not for non-optional one:[ExtAttr] optional [Clamp] short argname
. Is this intended?I think this causes ambiguity before reading the token
optional
, where the first extended attribute typically is for the type but not when optional.The text was updated successfully, but these errors were encountered: