W3C home > Mailing lists > Public > www-svg@w3.org > December 2008

Re: [selectors-api] SVG WG Review of Selectors API

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Sun, 07 Dec 2008 22:08:23 -0500
Message-ID: <493C8FA7.4070808@mit.edu>
To: Doug Schepers <schepers@w3.org>
CC: "public-webapps@w3.org" <public-webapps@w3.org>, www-svg <www-svg@w3.org>

Doug Schepers wrote:
> Please add an example such as this one:
> 
> <html xmlns="http://www.w3.org/1999/xhtml">
>   <body>
>    <svg xmlns="http://www.w3.org/2000/svg">
>     <font id="mysvgfont">
>      ...
>     </font>
>    </svg>
>    <font face="Arial">Example</font>
>    <svg:font id="anothersvgfont" xmlns:svg="http://www.w3.org/2000/svg">
>     ...
>    </svg:font>
>   </body>
> </html>
> 
> Then explain how to use the Selectors API to select only the svg 'font'
> elements 

Can't be done at the moment.  Could be done with NSResolver or similar.

> and how to select only the svg font elements that have a prefix on the element.

Also can't be done (and that will continue to be the case pretty much no 
matter what happens in terms of NSResolver or similar functionality, 
since Selectors knows nothing about the qualifiedName, only the 
namespace and localName).

-Boris
Received on Monday, 8 December 2008 03:11:58 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:41 GMT