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

Let me get back to this.
As 3 is a matter of CSS selectors, let's decide on question 1 and 2.

For 1, I'd vote for NO for consistency with other pseudo elements.
For 2, I'd vote for YES, as it is clear if the query's intention is to pierce through tree boundary, if the selector contains such combinator (assuming `>>>` is for real).  I cannot think of any accidental leak of shadow tree internal from query outside the tree.

So if developers want `shadowRoot.querySelector('::slotted(div)')` to match, we need to define another combinator (e.g. `/slotted/` ?) that works almost like `::slotted()`.

Any opinions?  @rniwa @annevk

-- 
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-314947863

Received on Thursday, 13 July 2017 01:58:26 UTC