Re: [w3c/webcomponents] Support `>>>` combinator in static profile (#78)

> Is `collectMatchingElementsInFlatTree` on the element prototype? E.g. allowing for this to work on a subtree? I want to be able to do something like `someDiv.collectMatchingElementsInFlatTree()`.

Our API currently hangs off of the global object and you have to pass in the `someDiv` but if we're standardizing it, then we'd most certainly add it on an element just like what you wrote.

> Also, does this API select for trees *within* a shadow root? or does it only match an element in isolation? Like, are queries like `#main x-foo` valid if both `x-foo` and `#main` were in the same shadowRoot?

`#main x-foo` to apply an element only if both `x-foo` and `#main` are in the same tree.

-- 
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/78#issuecomment-337471489

Received on Wednesday, 18 October 2017 06:19:02 UTC