News for hackers. Stuff that matters.
Re:Introducing Shadow DOM API by mozumder on Monday October 26, 2015 @03:18PM (#10453739)
Ask yourself why the generic UI elements in Polymer, like Menu, Dialog Boxes, etc.., isn't part of HTML itself?

If you want to see balkanized UI frameworks, there it is.

Re:Introducing Shadow DOM API by spankalee on Monday October 26, 2015 @03:26PM (#10453790)
> why the generic UI elements in Polymer, like Menu, Dialog Boxes, etc.., isn't part of HTML itself?

Because they shouldn't be. HTML should not be responsible for providing every possible UI element. In fact, I would argue that provides _far_ too many UI elements, and should instead provide low level user input APIs that can be used to build interactive elements.

Re:Introducing Shadow DOM API by mozumder on Monday October 26, 2015 @03:54PM (#10453972)
And so web developers have to write basic UI widgets just to get basic UI elements. Or, to use a heavyweight component library that needs needs to be downloaded.

Thanks but no thanks.

HTML should provide a rich, declarative UI API by default. We shouldn't have to hunt down separate components to get that.

If you have to load Javascript, you have already lost.

Re:Introducing Shadow DOM API by spankalee on Monday October 26, 2015 @05:01PM (#10454443)
A well regarded standard UI library, say jointly developed by browser vendors, could be CDN served and cached or even bundled with browsers eliminating the download cost with the massive advantage that it can be versioned independently of HTML and browsers and is optional in case a better library comes along.
Re:Introducing Shadow DOM API by mozumder on Monday October 26, 2015 @05:14PM (#10454535)
> A well regarded standard UI library, say jointly developed by browser vendors,

This is commonly known as the web browser.

lol @ browser vendors deploying UI components via Javascript, when they could just as easily deploy them in the web browser itself as part of upgraded HTML specs.

Re:Introducing Shadow DOM API by oldmanjay on Monday October 26, 2015 @07:56PM (#10455316)
"just as easily" is an interesting phrase to use here. I have to assume that your day job does not involve building browsers.
Re:Introducing Shadow DOM API by kuschku on Monday October 26, 2015 @05:09PM (#10454504)
Again, at the moment where javascript is required to read a website, you have already lost.