News for hackers. Stuff that matters.
Re:Apple Removes Shadow DOM from Safari by MrBuddyCasino on Saturday February 15, 2014 @05:05AM (#7243299)
Still the question remains, WebComponents need shadow DOM right?
Re:Apple Removes Shadow DOM from Safari by dasmoth on Saturday February 15, 2014 @05:13AM (#7243321)
Yes.

Shadow DOM is a key part of web components: http://www.w3.org/TR/components-intro/#shadow-dom-section

Re:Apple Removes Shadow DOM from Safari by ebidel on Saturday February 15, 2014 @06:30PM (#7245957)
It's a common misconception that Shadow DOM is required to create a "web component". What it brings to the table is style and dom encapsulation. Not using it means components won't have those benefit (by default), but there's nothing stopping people from creating custom elements that are not encapsulated.

An analogy can be made to requestAnimation. raF isn't required to create animations, but it's highly useful in that context. raF can also be used for other use cases outside of animations (scroll effects, etc). Shadow DOM is the same IMO. It's a useful standalone technology, but when used in the context of web components, it really shines.

Re:Apple Removes Shadow DOM from Safari by lennel on Saturday February 15, 2014 @05:49AM (#7243392)
That is what I thought, so dead the tech is dead in the water.
Re:Apple Removes Shadow DOM from Safari by coldtea on Saturday February 15, 2014 @06:52AM (#7243511)
Well, it isn't even a standard yet. Google wants to push it just to have it for Angular.
Re:Apple Removes Shadow DOM from Safari by ebidel on Saturday February 15, 2014 @06:18PM (#7245909)
Adding powerful new APIs to the web platform benefits more than just Angular, no? The set of evolving standards-based technologies behind "web components" (templates, Shadow DOM, HTMLImports, custom elements) can be utilized by any framework. More tools in our toolbox.
Re:Apple Removes Shadow DOM from Safari by coldtea on Sunday February 16, 2014 @08:04AM (#7247521)
>Adding powerful new APIs to the web platform benefits more than just Angular, no?

Maybe, but that doesn't mean Google cares about enpowering the web platform in general.

If they did they wouldn't have removed other standard code (css regions), and they wouldn't have pushed for their, non-standard, Shadow DOM implementation.

Re:Apple Removes Shadow DOM from Safari by caitp on Saturday February 15, 2014 @11:19AM (#7244180)
That might be a bit of an exaggeration, although on the Angular side, we'd certainly like to have it pref'd on by default this summer (as unlikely as that may be).

Anyways, I really think people are sort of attributing malice to Glazkov's remarks where none really ever existed, WRT shipping the shadow DOM in its current state.

Re:Apple Removes Shadow DOM from Safari by sanxiyn on Saturday February 15, 2014 @05:13AM (#7243323)
Yes, but the question is whether Web Components is needed.
Re:Apple Removes Shadow DOM from Safari by dasmoth on Saturday February 15, 2014 @05:21AM (#7243339)
Needed for a document-based web? maybe not.

Needed to turn the web into a solid application platform with good support for composition and code reuse? I'm going to say yes (or if not Web Components then something that facilitates better scoping of code and CSS).

Of course, not everyone wants to see the web-application model become too powerful...

Re:Apple Removes Shadow DOM from Safari by coldtea on Saturday February 15, 2014 @06:53AM (#7243518)
>Of course, not everyone wants to see the web-application model become too powerful...

Is that directed at Apple? Because they have had the most powerful mobile web engine for years -- and they continue evolve their desktop one. Heck, the gave us stuff like Canvas and CSS animations.

Re:Apple Removes Shadow DOM from Safari by robmcm on Saturday February 15, 2014 @10:19AM (#7243999)
That was to kill flash. Now they have video and animations sorted they don't want to eat into their native platform.
Re:Apple Removes Shadow DOM from Safari by coldtea on Saturday February 15, 2014 @02:13PM (#7244903)
>That was to kill flash

Nope, they never supported flash in mobile in the first place. And they continue to do so today, years after Flash has been dead and burried.

Re:Apple Removes Shadow DOM from Safari by robmcm on Tuesday February 18, 2014 @04:14AM (#7257145)
They needed to have an alternative to flash to make not implementing it viable...

If they hadn't added canvas/video etc to HTML and there was no way to do half the things flash did, it would have been trumped by Android and their mobile flash player.

Re:Apple Removes Shadow DOM from Safari by SimHacker on Saturday February 15, 2014 @12:58PM (#7244574)
>Of course, not everyone wants to see the web-application model become too powerful...

That's funny, since when the iPhone first came out, Apple claimed there wasn't gonna be a native SDK, and developers would just write all their apps in HTML.

Re:Apple Removes Shadow DOM from Safari by sanatgersappa on Saturday February 15, 2014 @07:08AM (#7243547)
Try Reactjs. Does all that at 60 fps without the Shadow DOM on all modern browsers.