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

require hyphens in custom attribute names? #24

Open
trusktr opened this issue Dec 28, 2019 · 3 comments
Open

require hyphens in custom attribute names? #24

trusktr opened this issue Dec 28, 2019 · 3 comments

Comments

@trusktr
Copy link

trusktr commented Dec 28, 2019

The DOM already has global attributes and it may want to reserve the no-hyphen space for future builtins.

Any thoughts on this?

@matthewp
Copy link
Owner

Maybe, but also keep in mind that people regularly use non-hyphenated attributes on their own custom elements.

@wessberg
Copy link

I personally think Custom Attribute names should follow the same syntactical and semantic rules as for Custom Element names, considering that is something that will most likely otherwise cause concern among implementers, if Custom Attributes eventually evolve into a proposal for a new Web API.

@matthewp
Copy link
Owner

My opinion has changed here over time and I think I agree now (with requiring a hyphen)

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