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

Re: [selectors-api] Investigating NSResolver Alternatives

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Sat, 12 Jul 2008 19:10:45 +0200
To: Boris Zbarsky <bzbarsky@MIT.EDU>
Cc: public-webapps <public-webapps@w3.org>
Message-ID: <kvoh74t94pqeq5nitg7tf45b54f8la2h9l@hive.bjoern.hoehrmann.de>

* Boris Zbarsky wrote:
>How do I select all the inline SVG images on the page?
>
>The obvious answer I can think of is
>
>   :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.
Using `//svg:svg[ not(parent::svg:*) ]` is another viable alternative...
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Saturday, 12 July 2008 17:11:25 GMT

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