Skip to content
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

[web-animations-2] Web IDL syntax error #11624

Open
autokagami opened this issue Jan 31, 2025 · 4 comments
Open

[web-animations-2] Web IDL syntax error #11624

autokagami opened this issue Jan 31, 2025 · 4 comments

Comments

@autokagami
Copy link
Contributor

🤖 This is an automatic issue report for Web IDL syntax error. 🤖

webidl2.js says:

Syntax error at line 6 in web-animations-2,15, since `interface AnimationTrigger`:
 CSSKeywordValue or DOMString) rangeStart = "normal";
                                          ^

Error: Unterminated attribute, expected ;

Please file an issue at https://github.com/saschanaz/webidl-updater/issues/new if you think this is invalid or should be enhanced.

@tidoust
Copy link
Member

tidoust commented Jan 31, 2025

I suspect the intent of the change was to set default values for the attributes. Default values are not allowed in interface attributes in Web IDL, only for dictionary members.

@tidoust
Copy link
Member

tidoust commented Jan 31, 2025

Also note that, even without the default value, the definition of the attribute remains invalid for the same reason as that noted in
#9355 (comment): "dictionaries aren't allowed as attribute types"

@ydaniv
Copy link
Contributor

ydaniv commented Jan 31, 2025

Thanks! I'll push a fix

@ydaniv
Copy link
Contributor

ydaniv commented Jan 31, 2025

I think this should do as a fix: #11630

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants