-
-
Notifications
You must be signed in to change notification settings - Fork 927
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
Custom elements: built-in element extensions lose their is
attribute
#2799
Comments
As long as we deal with |
When creating elements in Javascript, “is” may need to be given not only with createElement() but also explicitly with setAttribute(). flems (same issue without mithril) As for mithril, it may be enough to just remove the "is" exclusion below and let setAttr() work like any other attribute. Line 679 in c6ffa18
|
This allows the "is" attribute to be set or removed like any other attribute.
As demonstrated here, a custom element that extends a built-in via the
is
attribute behaves strangely. The extension is recognised and the custom element is constructed as expected; but theis
attribute that determined this behaviour is not present on the rendered element. Having been specified in hyperscript, I would expect it to remain.The text was updated successfully, but these errors were encountered: