Re: [selectors-api] Investigating NSResolver Alternatives

* 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 UTC