W3C home > Mailing lists > Public > public-webapi@w3.org > February 2008

Re: [selectors-api] NSResolver and xml:* attributes (xml:id, xml:lang, xml:base, xml:space)

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Thu, 14 Feb 2008 10:37:07 -0600
Message-ID: <47B46E33.7080002@mit.edu>
To: Sergey Ilinsky <castonet@yahoo.co.uk>
CC: public-webapi@w3.org

Sergey Ilinsky wrote:
> the "xml" prefix is an exception whose
> namespace doesn't need to be defined explicitly.

This is true in XML, but that's not the case in Selectors, and it's not obvious 
that it should be true for this API.

For example, the following document:

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
   <style>
     html { color: red; }
     html[xml|lang="en"] { color: green; }
   </style>
</head>
<body>
Text
</body>
</html>

Gives me red text and a CSS parse error complaining about an unknown namespace 
in both Gecko and Presto.

-Boris
Received on Thursday, 14 February 2008 16:36:48 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 14 February 2008 16:36:49 GMT