Re: [Bug 5974] New: Language tag sameness should probably be ASCII case-insensitive

Although something like this is clearly a mistake and should not be  
allowed:

<span lang="fr" xml:lang="de">

Isn't the following a little more of a grey area?

<span lang="fr-FR" xml:lang="fr">

Might an improved criterion for conformance be: if @lang and  
@xml:lang are both present, they must be equal, or one must be a  
substring of the other, matching the head of the longer string. (All  
case insensitive.) When the attributes conform to the previous  
condition, the longer attribute value is taken to be the language of  
the element.

-- 
Toby A Inkster
<mailto:mail@tobyinkster.co.uk>
<http://tobyinkster.co.uk>

Received on Tuesday, 19 August 2008 07:55:26 UTC