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

Re: XPath and find/findAll methods

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 22 Nov 2011 12:31:53 -0500
Message-ID: <4ECBDC89.3020505@mit.edu>
To: public-webapps@w3.org
On 11/22/11 12:29 PM, Robin Berjon wrote:
>>> d - "//div[parent::*//a]";
>>
>> (d) can be done with the new subject indicator in the Selectors 4
>> draft:   a!>  div  (syntax pending, but that's the general idea)
>
> I think that the example you show selects the<a>  parent of a<div>, not<div>s that have parents containing an<a>.

Yes, that's what Tab's selector selects too.  The '!' after the 'a' is 
important there.

-Boris
Received on Tuesday, 22 November 2011 17:32:23 GMT

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