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

(For reference, `::part()` is talking about https://tabatkins.github.io/specs/css-shadow-parts/#part-attr , or https://github.com/w3c/webcomponents/issues/300, and "match a selector against a tree" is https://drafts.csswg.org/selectors-4/#match-against-element)

Thanks Tab for the comment, so you think YES for 1, then it implies YES for 2 as well?
If that's the case, `shadowRoot.querySelector(':host')` would return the real element as well?
Also, what if `::part()` points to an element that is in a closed shadow tree - shall it return `null`?

If we allow not-in-the-same-tree element to be returned, implementation has to take care of each exceptional pseudo elements (`::slotted()`, `::part()`, and so on) to be matched against nodes in different node trees, so it definitely looks revising "match a selector against a tree" algorithm is necessary.

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

Received on Thursday, 10 August 2017 01:59:41 UTC