Re: Opera's Proposal for :context Selector

Andrew Fedoniouk wrote:
> Am I correct in my understanding that:
> 
>   localRoot.querySelector("div")
> 
> will mean precisely:
> 
>   localRoot.querySelector(":context div")

In that particular case, yes, because the results are restricted to 
elements contained within the context node.  But not in this case:

foo.querySelector("div div");

That is not the same as either

foo.querySelector(":context div div")

And similarly when using other combinators.  This is all clearly 
explained in that email I linked to before.

-- 
Lachlan Hunt - Opera Software
http://lachy.id.au/
http://www.opera.com/

Received on Sunday, 13 July 2008 23:00:27 UTC