News for hackers. Stuff that matters.
Re:The Firefox UI Is Now Built with Web Components by interlocutor on Wednesday November 20, 2019 @05:36PM (#21589373)
What are you talking about? There is hardly any API. https://developer.mozilla.org/en-US/docs/Web/Web_Components/... It is extremely simple.
Re:The Firefox UI Is Now Built with Web Components by Crinus on Thursday November 21, 2019 @06:14AM (#21593060)
First time reading this.

On one hand it looks neat. This is something i expected browsers to be able to do since i noticed that Mozilla (pre-Firefox) implemented <blink> (or <marquee>?) in JavaScript.

On the other hand it looks like it'll become much harder for JavaScript-less environments to extract data from web-pages as now an article on a news site could be something like <news-article id="23848923"> and the JavaScript side will do the rest.

But being able to do something like <my-fancy-button caption="Go To Google" target="http://google.com/"> that in the background creates all the canvases and such needed will be neat.

Re:The Firefox UI Is Now Built with Web Components by Asooka on Thursday November 21, 2019 @12:34PM (#21596805)
>On the other hand it looks like it'll become much harder for JavaScript-less environments to extract data from web-pages as now an article on a news site could be something like <news-article id="23848923"> and the JavaScript side will do the rest.

This is already the case on a lot of sites, just not standardized. With the standard you could sandbox the javascript or maybe implement specific parsing for the most common web components.

Re:The Firefox UI Is Now Built with Web Components by madmulita on Thursday November 21, 2019 @06:37AM (#21593157)
Oh, wait for webassembly, that's gonna be fun.