-
Notifications
You must be signed in to change notification settings - Fork 33
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
[FEATURE] collapseBooleanAttributes
doesn't work with custom attributes
#55
Comments
Reading the source it looks like it only checks if the attribute is one of predefined attributes.
Would adding support for collapsing custom boolean attributes be supported? Something like |
collapseBooleanAttributes
doesn't seem to work at allcollapseBooleanAttributes
doesn't seem to work at all
collapseBooleanAttributes
doesn't seem to work at allcollapseBooleanAttributes
doesn't work with custom attributes
In HTML5, all custom attributes must have the Given that |
Yes, but also no. customElements.define("custom-anchor-element", class extends HTMLElement {}); <custom-anchor-element router="true" another="another" variant=variant test=true></custom-anchor-element> but a custom element can also look like this: customElements.define("custom-anchor-element", class extends HTMLAnchorElement {}, {extends: "a"}); <a is="custom-anchor-element" router="true" another="another" variant=variant test=true></a> |
result
expected result
Are my expectations incorrect?
The text was updated successfully, but these errors were encountered: