Re: [selectors-api] Investigating NSResolver Alternatives

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 UTC