[whatwg/dom] querySelector/All can accidentally return the scoping element (#263)

https://dom.spec.whatwg.org/#selectors

> Return the result of evaluate a selector s against node’s root using scoping root node and scoping method scope\-filtered\. \[SELECTORS4\]\.

Scope-filtered selectors still allow the scoping element to be returned. Thus per spec, `el.querySelector("*")` will return `el` (plus its descendants of course).  However, I don't think this is intended, and it doesn't match implementations, who all omit the scoping element from the results.  

You'll want to manually remove the scoping element from the results if they show up.

(Reporting this for @nox so they don't forget.)

---
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/263

Received on Friday, 3 June 2016 23:07:17 UTC