4 ms·
I'm always really surprised when I read posts like these and they don't mention Web Components/Shadow DOM. The ability to encapsulate markup, style, and behavi
by kevincennis 14y ago
I'm always really surprised when I read posts like these and they don't mention Web Components/Shadow DOM.
The ability to encapsulate markup, style, and behavior into a single unit with a clean API is an enormous improvement. Of all the new HTML5 features, I think Web Components have the highest potential to relieve a huge pain point for developers.
Image an online repository with all kinds of widgets -- range sliders, date-pickers, sortable lists, etc. But instead of a collections of inconsistent jQuery plugins with CSS dependencies, you get a single, self-contained module that can be interacted with as if it were a native DOM node.
- nkron 14y agoWeb Components sounds great but doesn't seem to be supported anywhere. Once people can use them, they will start making lists like this.
- masklinn 14y ago> But instead of a collections of inconsistent jQuery plugins with CSS dependencies You get a collection of inconsistent web components? > you get a single, self-contained module that can be interacted with as if it were a native DOM node. Right, because the one thing I always think when I'm using third-party code is "I'd like this thing to be way more opaque, I'd like to have way less control over it, and I definitely don't want to be able to introspect it."
- deleted 14y ago[deleted]