[whatwg] Selector API

Bronislav Klučka Bronislav.Klucka at bauglir.com
Mon Oct 17 13:56:05 PDT 2011


On 17.10.2011 22:41, Boris Zbarsky wrote:
> On 10/17/11 4:06 PM, Bronislav Klučka wrote:
>> Hello,
>> but let's say there are multiple ul.list element on the page and e.g.
>> via click event I got reference to one of those list
>> myListVariable.querySelectorAll(" > li");
>> does not work... selector is missing parent reference
>>
>> of course the same goes for + and ~ combinators
>
> :scope addresses this, right?
>
> -Boris
Hi,
I cannot find :scope pseudo-class selector definition anywhere, but I've 
noticed discussion in this list about :scope in scoped style element 
(http://dev.w3.org/html5/spec/Overview.html#attr-style-scoped) issues. 
If such pseudo-class is introduced, it could be a way to address my 
problem, sure.

Brona




More information about the whatwg mailing list