[whatwg/dom] "To validate and extract a namespace and qualifiedName" could use clarification about case-insensitivity (#680)

Steps 7-9 in the ["To validate and extract a namespace and qualifiedName" algorithm](https://dom.spec.whatwg.org/commit-snapshots/28cdb47e557c814fcca60759f4cce43e9c0e9a47/#validate-and-extract) currently say:

> 7. If prefix is "xml" and namespace is not the XML namespace, then throw a "NamespaceError" DOMException.
> 8. If either qualifiedName or prefix is "xmlns" and namespace is not the XMLNS namespace, then throw a "NamespaceError" DOMException.
> 9. If namespace is the XMLNS namespace and neither qualifiedName nor prefix is "xmlns", then throw a "NamespaceError" DOMException.

These steps could probably use some clarification about whether "xml" and "xmlns" should be matched in a case-insensitive manner, as both the QName production and Name production pages on w3.org, being referred to earlier on, mention this.

On the [QName production](https://www.w3.org/TR/xml-names/#NT-QName) page [it says](https://www.w3.org/TR/xml-names/#xmlReserved):

> **Namespace constraint: Reserved Prefixes and Namespace Names**
> *[...constraints on reserved prefix/namespace combinations...]* 
> All other prefixes beginning with the three-letter sequence x, m, l, in any case combination, are reserved. 

...and on the [Name production](https://www.w3.org/TR/xml/#NT-Name) page [it says](https://www.w3.org/TR/xml/#dt-name):

> Names beginning with the string "xml", or with any string which would match (('X'|'x') ('M'|'m') ('L'|'l')), are reserved for standardization in this or future versions of this specification.


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/680

Received on Tuesday, 21 August 2018 12:55:25 UTC