https://bugzilla.wikimedia.org/show_bug.cgi?id=44609

--- Comment #1 from Michael Zajac <[email protected]> ---
[I wish I could edit my bug, or at least preview. Have you guys heard of this
“wiki” thing. Here’s a better-formatted version of my bug report.]

Wikipedia and Wiktionary pages now have the HTML5 doctype <!doctype html>, and
a root <html> tag with only a lang attribute. 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 "xml:lang" has no effect on language
processing.”

Source:
http://www.w3.org/TR/2011/WD-html5-20110525/elements.html#the-lang-and-xml:lang-attributes

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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to