W3C home > Mailing lists > Public > www-validator@w3.org > August 2013

Re: lang attribute ISO 639-3 support

From: Felix Sasaki <fsasaki@w3.org>
Date: Mon, 05 Aug 2013 09:46:31 +0200
Message-ID: <51FF5857.5020702@w3.org>
To: Stefán Örvar Sigmundsson <stefan_orvar_sigmundsson@outlook.com>
CC: "www-validator@w3.org" <www-validator@w3.org>
Am 05.08.13 07:58, schrieb Stefán Örvar Sigmundsson:
> www-validator@w3.org:
>
> According the the HTML 5 working draft the lang attribute is supposed 
> to be a valid BCP 47 language tag as defined by the Internet 
> Engineering Task Force (IETF) in the BCP 47 standard. The BCP 47 
> standard states that a valid primary language can be a language code 
> defined in the ISO 639-3 standard.

This is not exactly true, see

http://tools.ietf.org/html/bcp47#section-2.2.1

"When languages have both an ISO 639-1 two-character code and a three-
    character code (assigned by ISO 639-2, ISO 639-3, or ISO 639-5), only
    the ISO 639-1 two-character code is defined in the IANA registry."

So you have only "en" in the IANA registry, which is recognized by the 
validator, but not "eng".

Best,

Felix

> However, the validator does not recognise the ISO 639-3 codes and so 
> the following is deemed invalid HTML 5:
>
> <!DOCTYPE html>
> <html lang="eng-GB">
>     <head>
>         <meta charset="UTF-8"/>
>         <title>Invalid HTML 5</title>
>     </head>
>     <body>
>     </body>
> </html>
>
> http://tools.ietf.org/rfc/bcp/bcp47.txt
>
> Yours respectfully,
> Stefán Örvar Sigmundsson
Received on Monday, 5 August 2013 07:47:01 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:18:09 UTC