-
Notifications
You must be signed in to change notification settings - Fork 319
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
How to use extends option from WebComponents specification #879
Comments
We don't support this. Safari is not implementing customized built-ins, and we don't want to encourage components that don't work on Safari. |
I am curious if the polyfill here: https://github.com/ungap/custom-elements-builtin could help? Having lit-element lead the way towards these standards seems to me to be really helpful, especially when thinking of the ethos of the polymer-project (e.g. use the platform, and having the libraries disappear over time). The I hope that there are some polymer projects in the future that consider this and help lead Safari towards adopting these standards through creating libraries that help users take advantage of features that aren't fully adopted yet but are in the W3C recommendations. It reminds me of the webgl debate a bit. Both Microsoft and apple were initially very against it (security and app store games), I think some of the chrome experiments and doom examples in firefox really helped turn the tide there! This seems small, perhaps by comparison to that feature, but the same idea!! :) I see that there is also some discussion here: webcomponents/polyfills#102 (comment) |
@rowanc1 Thank you, but I think, it couldn't help because of that polyfill should built-in in lit-element library. |
Are there any updates on that? This is still very relevant and interesting I think |
@lukaskoeller Now it's not a bug, it's official position from Safari team. They are strongly disagree with the 'extends' idea and the lit-element team can't skip supporting for Safari. So, I don't have any idea how you can implement it. (Without forking the lit-element). The issue where you can find more information: https://bugs.webkit.org/show_bug.cgi?id=182671 |
And stop using Lit for this purpose. See * https://web.dev/custom-elements-v1/#extending-native-html-elements * lit/lit-element#879 The goal here is to have any CSS already defined in a web project on the legacy <img> elements to apply to our web component as well.
And stop using Lit for this purpose. See * https://web.dev/custom-elements-v1/#extending-native-html-elements * lit/lit-element#879 The goal here is to have any CSS already defined in a web project on the legacy <img> elements to apply to our web component as well.
And stop using Lit for this purpose. See * https://web.dev/custom-elements-v1/#extending-native-html-elements * lit/lit-element#879 The goal here is to have any CSS already defined in a web project on the legacy <img> elements to apply to our web component as well.
And stop using Lit for this purpose. See * https://web.dev/custom-elements-v1/#extending-native-html-elements * lit/lit-element#879 The goal here is to have any CSS already defined in a web project on the legacy <img> elements to apply to our web component as well.
And stop using Lit for this purpose. See * https://web.dev/custom-elements-v1/#extending-native-html-elements * lit/lit-element#879 The goal here is to have any CSS already defined in a web project on the legacy <img> elements to apply to our web component as well.
And stop using Lit for this purpose. See * https://web.dev/custom-elements-v1/#extending-native-html-elements * lit/lit-element#879 The goal here is to have any CSS already defined in a web project on the legacy <img> elements to apply to our web component as well.
And stop using Lit for this purpose. See * https://web.dev/custom-elements-v1/#extending-native-html-elements * lit/lit-element#879 The goal here is to have any CSS already defined in a web project on the legacy <img> elements to apply to our web component as well.
Hi! I try to use lit-element in my current project and previous I use that code
and then in html I can use that component like
<input is="homepage-search" >
. It's really important for me because in that case I can use that component without any css changes.And now I want to convert the code to lit-element component. But I don't understand how because using that variant
I got the error
TypeError: Class constructor bo cannot be invoked without 'new'
Thank you
Browsers Affected
Versions
The text was updated successfully, but these errors were encountered: