Add :scope pseudo-class that only matches against the contextual reference element - see http://dev.w3.org/csswg/selectors4/#scope-pseudo.
Created attachment 129862 [details] Patch
Comment on attachment 129862 [details] Patch Clearing flags on attachment: 129862 Committed r109573: <http://trac.webkit.org/changeset/109573>
All reviewed patches have been landed. Closing bug.
hello, <ul id="templ"><li></li><li></li></ul> running on yesterday nightly chromium (19.0.1068.0, 2012-03-12) and I'm having such results document.getElementById('templ').querySelectorAll(':scope'); returns empty set instead of set with one UL document.getElementById('templ').querySelectorAll(':scope li'); returns set of LI (that is fine) document.getElementById('templ').querySelectorAll(':scope > li'); returns empty set instead of set of LI
(In reply to comment #4) :scope is not yet implemented for querySelectorAll(), but it certainly should be! I opened bug 81069 for this.