axe-core
Version:
Accessibility engine for automated Web UI testing
18 lines (17 loc) • 435 B
JSON
{
"id": "has-lang",
"evaluate": "has-lang-evaluate",
"options": {
"attributes": ["lang", "xml:lang"]
},
"metadata": {
"impact": "serious",
"messages": {
"pass": "The <html> element has a lang attribute",
"fail": {
"noXHTML": "The xml:lang attribute is not valid on HTML pages, use the lang attribute.",
"noLang": "The <html> element does not have a lang attribute"
}
}
}
}