Summarized test results:
HTML5, the lang attribute

Intended audience: users, HTML coders, script developers, CSS coders, Web project managers, and anyone who wants to know how language declarations work in current browsers.

These tests check whether user agents recognize language declarations for HTML documents, and apply the expected prioritisation in case of mismatches between multiple declarations.

To see the test, click on the link in the left-most column. To see detailed results for a single test, click on a row and look just above the table. The detailed results show the date(s) the test result was recorded, and the version of the browser tested.

Any dependencies are shown in notes above the table, and notes below the table will usually provide any additional useful information, including an explanation of why a result was marked as 'partially successful'.

Key:

pass fail partially successful

Results

Note that these test results are for released versions of the browsers tested. Versions that are still in development may provide better support for these features. The tests do not use any vendor prefixes. Tests that do show support for vendor prefixes are listed further down this page.


Basic declarations

Conflicting declarations

Dependencies

  1. the-lang-attribute-005 and the-lang-attribute-006 can be ignored if the above test the-lang-attribute-003 fails.
  2. the-lang-attribute-006 and the-lang-attribute-007 can be ignored if the above test the-lang-attribute-004 fails.

Empty language value

Dependencies

  1. the-lang-attribute-009 should be ignored if the above test the-lang-attribute-003 fails.
  2. the-lang-attribute-010 should be ignored if the above test the-lang-attribute-004 fails.

Declarations containing multiple languages

Dependencies

  1. the-lang-attribute-011 should be ignored if the above test the-lang-attribute-003 fails.
  2. the-lang-attribute-012 should be ignored if the above test the-lang-attribute-004 fails.

Notes

  1. Again, Firefox set the language of the text to three languages, which doesn't make sense for text-processing.