HTML5 Internationalization Tests
Language declarations
This page gathers links related to tests being developed by the Internationalization Core Working Group to assess internationalization support of user agents. These tests are subject to change from time to time.
For each of the sections below, this page links to summaries of the results of related tests (for major browsers), to more detailed results (by test suite) in the W3C Test Framework, and to pages in the framework that allow you to run the tests and record results. The remainder of each section provides direct links to the tests themselves, with information about the test assertion and relevant formats.
Basic declarations
Links: Section 3.2.3.3 • Summary of results • Detailed results for 3.2.3.3 • Submit data for 3.2.3.3
- lang attribute in html tag (language-declarations-001)
The browser will recognize a language declared in a lang attribute on the html tag.
TestResults - Exploratory: xml:lang attribute in html tag (language-declarations-002a)
[Exploratory test] The browser will not recognize a language declared in a xml:lang attribute on the html tag.
TestResults - HTTP header (language-declarations-003)
The browser will recognize a language declared in the HTTP header, when there is no internal language declaration.
TestResults - Content-Language meta element (language-declarations-004)
The browser will recognize a language declared in a meta element in the head using http-equiv='Content-Language' content='..' (with a single language tag value), when there is no other language declaration.
TestResults
Conflicting declarations
Links: Section 3.2.3.3 • Summary of results • Detailed results for 3.2.3.3 • Submit data for 3.2.3.3
- HTTP header and html lang (language-declarations-009)
If there is a conflict between the language declarations in the HTTP header and the html element using lang, the UA will recognize the language declared in the html element.
TestResults - HTTP header and meta element (language-declarations-011)
If there is a conflict between the language declarations in the HTTP header and the Content-Language meta element, the UA will recognize the language declared in the meta element.
TestResults - html lang and meta elements (language-declarations-012)
If there is a conflict between the language declared using lang in the html element and that in the meta element, the UA will recognize the language declared in the html element.
TestResults
Empty language value
Links: Section 3.2.3.3 • Summary of results • Detailed results for 3.2.3.3 • Submit data for 3.2.3.3
- lang="..." vs lang="" (language-declarations-018)
If an element contains a language attribute with an empty value, the value of a language attribute higher up the document tree will no longer be applied to the content of that element.
TestResults - lang="" vs HTTP (language-declarations-014)
If the HTTP header contains a language declaration but the html element uses an empty lang attribute, the UA will not recognize the language declared in the HTTP header.
TestResults - lang="" vs meta Content-Language (language-declarations-015)
If the meta Content-Language element contains a language declaration but the html element uses an empty lang attribute, the UA will not recognize the language declared in the meta Content-Language element.
TestResults
Multiple values
Links: Section 3.2.3.3 • Summary of results • Detailed results for 3.2.3.3 • Submit data for 3.2.3.3
- First of multiple languages in HTTP header (html5) (language-declarations-005)
The UA will not recognize a language declaration in the HTTP Content Language header where more than one language is declared.
TestResults - First of multiple languages in Content-Language meta element (language-declarations-007)
The UA will not recognize a language declaration in the Content-Language meta element where more than one language is declared.
TestResults
Content last changed 2012-03-30 06:36 GMT.