Author: michael
Description:
Wikipedia and Wiktionary pages now have the HTML5 doctype <!doctype html>, and a root <html> element with only a lang tag. HTML5 doesn’t require the xml:lang attribute. According to the spec,
“The attribute in no namespace with no prefix and with the literal local name "<code>xml:lang</code>" has no effect on language processing.”
But if you enter, e.g., <span lang="fr">fou<span> into a wiki page, the wikitext parser will add a redundant and vestigial xml:lang attribute.
The parser should stop adding the xml:lang attribute in pages that are HTML5 and not XML.
Version: 1.21.x
Severity: trivial