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 12:54:35 -0400
Message-ID: <4878E1CB.7090104@mit.edu>
To: Anne van Kesteren <annevk@opera.com>
CC: public-webapps <public-webapps@w3.org>

Anne van Kesteren wrote:
> What are the use cases you guys envision? All I can think of when 
> thinking about usage of querySelector on the Web is HTML. And maybe SVG 
> and MathML too in the near future.

Those, plus XUL, though this last is less on the Web of course.

> However, none of those really requires namespace support, including when you mix them.

How do I select all the inline SVG images on the page?

The obvious answer I can think of is

   :not(svg|*) > svg|svg

(with the "svg" prefix resolving to the SVG namespace), which pretty definitely 
requires namespace support.

-Boris
Received on Saturday, 12 July 2008 16:55:38 GMT

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