Re: [whatwg/dom] Match querySelector for pseudo elements (::slotted()) (#463)

> Yeah, but what part of that is "accidental"? Again, the only way to traverse the boundaries is using a selector that traverses the boundaries. There's only a handful of specific pseudos that do this; nothing else will. What's wrong with library/framework code being able to cross shadows when the user of the library explicitly asks them to?

The problem is that accidentally passing a selector which crosses a shadow boundary isn't really explicit. Whether something is concerned as explicit is quite subjective so I'm not certain if we can come to an agreement on that.

What I can say that is that we'd object to making querySelector returning a node outside of its own tree, and would not implement it in WebKit.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/463#issuecomment-323240700

Received on Friday, 18 August 2017 02:10:03 UTC