- From: Boris Zbarsky <bzbarsky@MIT.EDU>
- Date: Mon, 03 Dec 2012 08:29:55 -0500
- 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 UTC