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

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:


Lachlan Hunt - Opera Software

Received on Thursday, 14 February 2008 16:53:33 UTC