lang attribute in html tag


This test failed because it relies on :lang for results, but :lang is not supported by this browser.

The browser will recognize a language declared in a lang attribute on the html tag.

This test uses :lang to detect whether the language has been set. If :lang is not supported, a message will appear and the test will fail.

Spec text: «To determine the language of a node, user agents must look at the nearest ancestor element (including the element itself if the node is an element) that has a lang attribute in the XML namespace set or is an HTML element and has a lang in no namespace attribute set. That attribute specifies the language of the node (regardless of its value).»

Next test

Result summary & related tests
Detailed results for this test
Link to spec