by markelliot on 8/21/17, 4:29 AM with 37 comments
by romaniv on 8/21/17, 1:29 PM
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 systems.
<button does-stuff does-more-stuff></button>
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.
by SimeVidas on 8/21/17, 9:45 AM
[1]: https://github.com/google/WebFundamentals/commits/master/src...
by kevinSuttle on 8/21/17, 2:35 PM
> 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.
by voiper1 on 8/21/17, 4:37 AM
But there's a polyfill, and more discussion here:
https://developers.google.com/web/fundamentals/architecture/...
by VeejayRampay on 8/21/17, 11:41 AM
by microo8 on 8/21/17, 12:20 PM
by macawfish on 8/21/17, 8:47 PM
This piano keyboard element: https://micahscopes.github.io/all-around-keyboard/
Some elements for quickly drawing graphs in html: https://micahscopes.github.io/tangled-web-components/example...
(It still needs some more convenient ways of defining the graph structure, as well as an interface to do force layouts.)
I haven't worked on either project in a while. I kinda got tired working with the development version of skate.js while the custom elements spec was changing so fast. It's an excellent library, but things were moving too quickly for me to keep up.
Today, I'd probably just do it in plain javascript, since the spec is more stable now.
by megous on 8/21/17, 3:20 PM
<my-container> <some-child some-attr></some-child> </my-container>
How can I get notifications in my-container when someone from outside adds another child to it?
by pjmlp on 8/21/17, 12:12 PM
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.
by albertTJames on 8/21/17, 1:28 PM
by cztomsik on 8/21/17, 1:15 PM
by megamindbrian on 8/21/17, 7:15 PM
by dmitriid on 8/21/17, 8:06 AM
Polymer. Designed by people who actually do web development: https://pbs.twimg.com/media/DALwpYWVoAAIvkQ.jpg