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

Reply via email to