Re: [w3c/webcomponents] Generic programs can't reliably use/manipulate documents via the DOM (#640)

> Because otherwise pages would start depending on the implementation details of components.

I'm still not horrified by this. Sometimes this is useful and/or necessary.

> It's possible, for example, for a graphing component to be implemented using SVG in one iteration and canvas in another. If page's code ever depended on the component using SVG, then the page would break when the component's version gets updated and it starts using canvas instead of SVG.

If a page breaks, is it not an issue for the page's author, rather than the component developer?

> However, it's very important for the authors of each component to understand that doing so results in its shadow tree's structure being dependent by its users.

If a page depends on its internals, then they've taken that risk that updates will break things. It's their decision and their issue. I'm astounded that this position is controversial.

> Ultimately, page authors have the power not to use a component which doesn't expose its shadow tree, or demand that they provide some API to mess with component's shadow tree.

So you would prefer page authors to beg component developers instead of making the decision themselves?

> Either case, we don't believe we should give the unilateral power to users of components to decide whether it's okay to intrude into components' shadow tree or not.

Why can the component decide to opt them in or out of protections, but the page author themself cannot? The power dynamics of the current situation are really unusual, and don't seem to have any real advantages

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/640#issuecomment-302047131

Received on Wednesday, 17 May 2017 10:12:16 UTC