RE: I18n comment: lang value case-insensitive

> From: Ian Hickson [] 
> Sent: 31 January 2006 17:27
> On Sat, 21 Jan 2006 wrote:
> >
> > This section should statethat the matching of language values is 
> > case-insensitive, eg. en-gb is the same as en-GB.
> The working group discussed this issue.
> It's case-sensitive for XML attributes (since XML defines 
> everything to be case-sensitive), and case-insensitive for 
> HTML attributes that are defined as being case-insensitive. 
> That is, it depends on the document language.
> Please let us know if this does not resolve your comment.
> -- 
> Ian Hickson               U+1047E                

Actually XML isn't case sensitive in this point.

The XML spec says "The values of the attribute are language identifiers as
defined by [IETF RFC 3066], Tags for the Identification of Languages, or its
successor; in addition, the empty string MAY be specified."

RFC3066 specifies that case must not matter. " All tags are to be treated as
case insensitive; there exist conventions for capitalization of some of
them, but these should not be taken to carry meaning."


Richard Ishida
Internationalization Lead
W3C (World Wide Web Consortium)

Received on Tuesday, 31 January 2006 17:46:32 UTC