You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are differences in how assistive technologies handle unknown and invalid language tags. Some will default to the language of the page, whereas others will default to the closest ancestor with a valid lang attribute.
Testing handling of invalid and unknown language tags
<htmllang="en"><!-- Valid language tag --><plang="fr">Bonjour le monde!</p><!-- Invalid language tag --><plang="french">Hello World!</p><!-- Unknown language tag --><plang="xyz">Hello World!</p><!-- Nested invalid within valid --><divlang="es"><p>¡Hola Mundo!</p><plang="spanish">¡Hola!</p></div><!-- Invalid parent with valid child --><divlang="invalid-tag"><p>Some text</p><plang="de">Hallo Welt!</p></div><!-- Empty language tag --><plang="">Hello World!</p><!-- Malformed language tag --><plang="en-">Hello World!</p></html>
Accessibility support
There are differences in how assistive technologies handle unknown and invalid language tags. Some will default to the language of the page, whereas others will default to the closest ancestor with a valid lang attribute.
ACT Rules
Test cases
Test case 1
Testing handling of invalid and unknown language tags
Test case
Test instructions
External links
Test results
Please report test results in a comment below. Please use the following format:
The text was updated successfully, but these errors were encountered: