We have Custom Elements, but do we also need Custom Attributes? This was discussed at TPAC. Is it something you'd like on the platform? https://github.com/WICG/webcomponents/issues/1029
26 reposts106 likes
We have Custom Elements, but do we also need Custom Attributes? This was discussed at TPAC. Is it something you'd like on the platform? https://github.com/WICG/webcomponents/issues/1029
26 reposts106 likes
Before this feature I'd like declarative fetching of custom elements. The browser loads <my-element> only when it discovers it in the dom. Eliminate all the custom-built loaders with web standards. Maybe something for importmap 'my-element': 'http://' or a new attribute on the script tag 'on-demand'
Yes! But it'd almost certainly need some kind of scoping, left a comment: github.com/WICG/webcomp...
I literally wrote Datastar because this kind of option is only available in data-* attributes if you want a spec compliant way to do this. Look at what we've been able to do given the limitations of that spec. Please reach out if you want a whole lot of old man ranting at clouds www.data-star.dev
Yes please! This would give the DOM the equivalent of an Entity-Component System, allowing us to compose complex behavior from simple attributes. See aframe.io for an example of how far you can push this idea.