W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2012

Re: [selectors-api] Matching of :scope in document.querySelector(All)

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Mon, 03 Dec 2012 08:29:55 -0500
Message-ID: <50BCA953.5030308@mit.edu>
To: Lachlan Hunt <lachlan.hunt@lachy.id.au>
CC: public-webapps@w3.org
On 12/3/12 7:33 AM, Lachlan Hunt wrote:
> So it seems the current spec ended up treating these in
> the same way by matching nothing:
>
> document.querySelector(":scope")
> document.findAll(":scope")
>
> document.findAll(":scope", null)
> document.findAll(":scope", [])

That's how I read it, yes.

> I can change the spec to make the first 2 examples above match
> documentElement, but keep the latter two with explicit refNodes
> parameters matching nothing.

That sounds great to me.  Thanks!

-Boris
Received on Monday, 3 December 2012 13:30:30 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:56 GMT