-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
stringifier as CSSOMString attribute is not allowed #254
Comments
So, So the first question is, do your input IDL files properly include one of those typedefs? (I would suggest But, there's also a chance that it won't. If so, this is probably ultimately an issue with how the Web IDL spec is not very good about "resolving" So anyway, in terms of a fix:
You could also just manually replace |
The Thank you for the clarifications. I was somewhat familiar with the reasons why
Both quotes are from CSS Syntax. |
Hmm, interesting. It does seem like a lot of the properties or method arguments that use CSSOMString eventually do call normalize into a token stream. So it might be the case that, at least for most APIs, using USVString at the IDL layer would allow you to skip the normalization step later. On the other hand, it might be kind of messy since other entry points (like, saying, parsing the contents of But you raise a good point that, apparently, DOMString and USVString have the same web-observable behavior for most Web IDL-generated CSS APIs, since the input usually goes through a parser. I'd never realized that before. |
When generating a wrapper class for CSS MediaList, I get the following error:
I'm not sure why
CSSOMString
attribute is not accepted or if it should be accepted, but obviously when appending... && member.idlType.idlType !== "CSSOMString) ..."
, it works.The text was updated successfully, but these errors were encountered: