W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2008

Re: [selectors-api] Investigating NSResolver Alternatives

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Sat, 12 Jul 2008 14:24:42 -0400
Message-ID: <4878F6EA.7050102@mit.edu>
To: Bjoern Hoehrmann <derhoermi@gmx.net>, "public-webapps@w3.org" <public-webapps@w3.org>

Bjoern Hoehrmann wrote:
>>   :not(svg|*) > svg|svg
> 
> I think the point Anne tried to make is that you can somehow work around
> it if you accept that your workaround may fail in unusual situations, so
> here you'd use `svg:not(:root)` and accept that it breaks with non-SVG
> 'svg' elements, and 'svg' elements directly contained in SVG fragments.

That latter doesn't seem like an unusual situation, so much...  is it?

> Using `//svg:svg[ not(parent::svg:*) ]` is another viable alternative...

So not using selectors-api at all?  Sure.  But then why are we bothering with 
selectors api?

-Boris
Received on Saturday, 12 July 2008 18:25:28 GMT

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