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

Consider using <var> for IDL arguments #3042

Open
annevk opened this issue Feb 25, 2025 · 3 comments
Open

Consider using <var> for IDL arguments #3042

annevk opened this issue Feb 25, 2025 · 3 comments

Comments

@annevk
Copy link
Collaborator

annevk commented Feb 25, 2025

For instance,

constructor(DOMString message = "");

to indicate that message is an interchangeable variable name.

@jmdyck
Copy link

jmdyck commented Feb 25, 2025

If Bikeshed wanted italic IDL parameters, wouldn't it just change the CSS highlighting rules rather than require <var> around every parameter in the source?

@tabatkins
Copy link
Collaborator

Just to make sure - this is a request for the IDL parser/highlighter to use var wrappers around argument names in IDL blocks?

@annevk
Copy link
Collaborator Author

annevk commented Feb 26, 2025

Yeah, that seems better semantically and would make them match up with the method definitions in prose where we similarly use <var> to denote the argument names.

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