Now just have to wait a few years to be able to use it, or hope the polyfills actually cover all the browsers versions we might need to target.
Custom Elements v1: Reusable Web Components
11–20 of 41 posts
Re: Custom Elements v1: Reusable Web Components
#12Re: Custom Elements v1: Reusable Web Components
#13Re: Custom Elements v1: Reusable Web Components
#14Re: Custom Elements v1: Reusable Web Components
#15I think it would be much better for the web if browsers had a sane API for extending behaviors of any tag via attributes. This would make things easily composable and eliminate most problems of traditional component-based systems.
It would be even better if people working on these specs spent some time reading research papers on how a sane component-based system could work. For example: http://alumni.media.mit.edu/~mt/thesis/mt-thesis-Contents.ht... A lot of interesting ideas regarding extensible behaviors and ease of understanding.Edit: And yes, I'm aware of is="" functionality. It's not exactly what I'm talking about. In fact, if the specs were designed the way I mentioned, there would be no need for making anything special for built-in elements as opposed to the new ones.
Re: Custom Elements v1: Reusable Web Components
#16> At time of writing, no browser has implemented customized built-in elements. Chrome plans to implement them (status) but other browsers have expressed distaste for implementing the is="" syntax.
I would love to just be able to "fix" the normalization around several built-in elements.
Re: Custom Elements v1: Reusable Web Components
#17could it replace React ?
Re: Custom Elements v1: Reusable Web Components
#18
How can I get notifications in my-container when someone from outside adds another child to it?
Re: Custom Elements v1: Reusable Web Components
#19please correct me if I'm wrong but it seems that custom elements still do nothing about dependency hell (it's not possible to use same lib in different versions)
Re: Custom Elements v1: Reusable Web Components
#20Components with extensibility through inheritance written in a prototype-based language. Having worked with around a dozen component-based systems over the years I'm not particularly enthusiastic. I think it would be much better for the web if browsers had a sane API for extending behaviors of any tag via attributes. This would make things easily composable and eliminate most problems of traditional component-based s…
I don't know the people working on these specs, but presuming that they aren't aware of research in the area, and moreover of what has worked in practice and what hasn't, is audacious.