Sergey Ilinsky wrote:
I think specification misses a paragraph (or at least a note) on
handling selectors with xml:* attributes, the "xml" prefix is an
exception whose namespace doesn't need to be defined explicitly.
I believe, a selector "html[xml|lang=en]" (running on the document
below taken from specification) should not raise a NAMESPACE_ERR
exception in case no NSResolver provided, that would currently be the
case.
If authors wish to write selectors to select xml:* or xmlns:*
attributes, then they must declare prefixes for their namespace URIs.
the xml: and xmlns: prefixes only only predefined when used in XML. The
prefixes used in selectors are independent from those.
For XML, those prefixes are bound to these namespaces for use in the DOM:
xml http://www.w3.org/XML/1998/namespace
xmlns http://www.w3.org/2000/xmlns/
--
Lachlan Hunt - Opera Software
http://lachy.id.au/
http://www.opera.com/