H58.1 Invalid Language Tags Failure

test: Four character language subtag - well-formed but reserved.
english: Seven character language subtag - well-formed but needs to be registered if 5-8 characters. No languages have been registered with longer subtag names.
en-AUS: well-formed because it will be interpreted as a language plus extlang, rather than language plus country.

Success Criterion 3.1.2 (Language of Parts) states that the changes in language should be marked using language attributes to qualify for AA conformance.

This example should test the usage of lang and xml:lang attributes on a normal element that are well-formed, but not likely valid. HTML_CodeSniffer cannot vouch for the validity of otherwise well-formed tags. For instance, the "en-AUS" example below is well-formed because the "en" can be followed by a two-character country, three-character "extlang", or four-character script subtag - therefore it will parse as language and extlang. It is likely not what the author intended, which is likely "en-AU", and would not be valid if it was compared against the IANA language register.

Expected Not To Fail

(The "*" represents either "Lang" or "XmlLang" depending on which attribute applies.)

Relevant Success Criteria

Relevant Techniques