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

lang attribute ISO 639-3 support

From: Stefán Örvar Sigmundsson <stefan_orvar_sigmundsson@outlook.com>
Date: Mon, 5 Aug 2013 05:58:48 +0000
Message-ID: <DUB109-W105915FEA53D14E96EFED64C15C0@phx.gbl>
To: "www-validator@w3.org" <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. 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">
        <meta charset="UTF-8"/>
        <title>Invalid HTML 5</title>


Yours respectfully,
Stefán Örvar Sigmundsson
Received on Monday, 5 August 2013 05:59:15 UTC

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