-
Notifications
You must be signed in to change notification settings - Fork 414
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
Unique elements get "classname" instead of "class" #322
Comments
As workaround, you can call
Reagent has to rename To skip this renaming for custom elements, would require Reagent to check which tags are DOM elements, and which are not. I was at first unsure if this would be possible, but there seems to be quite simple way: https://www.w3.org/TR/custom-elements/#custom-elements-core-concepts
So we could just check if the tag name contains hyphen to see if it is a custom element. Would be great to run some performance tests on this though, as the check needs to be done on potentially performance critical path. |
Custom element names must always contain hyphen so we can use that to keep track of which elements are native vs. custom when parsing tag name. Fixes #322
Custom element names must always contain hyphen so we can use that to keep track of which elements are native vs. custom when parsing tag name. Fixes #322
Another workaround currently would probably be |
Custom element names must always contain hyphen so we can use that to keep track of which elements are native vs. custom when parsing tag name. Fixes #322
That work around works great. Thanks for that!
|
That work around works great. Thanks for that!
|
My desired output:
My reagent line:
My actual output:
Is this a bug? How can I get a "class" instead of "classname" on a non-canonical element?
The text was updated successfully, but these errors were encountered: