Re: lang attribute ISO 639-3 support

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