News for hackers. Stuff that matters.
Re:The Most Important Parts of HTML5 by kevincennis on Saturday August 11, 2012 @11:41AM (#4370286)
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.

Re:The Most Important Parts of HTML5 by masklinn on Saturday August 11, 2012 @12:51PM (#4370445)
> 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."

Re:The Most Important Parts of HTML5 by nkron on Saturday August 11, 2012 @12:29PM (#4370398)
Web Components sounds great but doesn't seem to be supported anywhere. Once people can use them, they will start making lists like this.