HTTP header and html lang

 

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

If there is a conflict between the language declarations in the HTTP header and the html element using lang, the browser will recognize the language declared in the html element.

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 in no namespace attribute set. That attribute specifies the language of the node (regardless of its value). ... If neither the node nor any of the node's ancestors, including the root element, have either attribute set, but there is a pragma-set default language set, then that is the language of the node. If there is no pragma-set default language set, then language information from a higher-level protocol (such as HTTP), if any, must be used as the final fallback language instead.»

Next test
HTML5

the-lang-attribute-005
Result summary & related tests
Detailed results for this test
Link to spec

Dependencies: