On Mon, 14 Jul 2008 21:30:18 +0200, Boris Zbarsky <[EMAIL PROTECTED]> wrote:
Anne van Kesteren wrote:
How do I select all the inline SVG images on the page?
    div > svg, p > svg
 though it's not quite as thorough as your solution.

Offhand, you're missing td, span, body to cover any sort of decent range of images.... But yes, much less thorough, indeed. And hard to get "right".

True.


On the other hand, this seems extremely complex to author and not something most authors would come up. :-)

That's possible, but I would think that the authoring of the query would be by one of the various toolkits, and the author would call getSVGImages() or some such.

Ok.


If this is the kind of scenario we're trying to get NSResolver defined for it does not be worth it.

Last I checked, the main envisioned use of the querySelector* APIs was to speed up existing queries toolkits do. Might be worth asking them what they think would be useful.

http://krijnhoetmer.nl/irc-logs/whatwg/20080709#l-597

http://api.dojotoolkit.org/jsdoc/dojo/HEAD/dojo.query (It doesn't even do XML unless all names are lowercase.)

http://www.prototypejs.org/api/utility/dollar-dollar

I agree that asking them explicitly would be good though, but it seems like so far the need was not compelling enough to implement it. (And libraries generally have gone to extreme lengths to implement other things not natively supported by browsers or not available cross browser.)


--
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>

Reply via email to