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

       Web browser: ---
            Bug ID: 44609
           Summary: Stop adding xml:lang attributes to HTML5 pages
           Product: MediaWiki
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: trivial
          Priority: Unprioritized
         Component: Parser
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified
   Mobile Platform: ---

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.”[http://www.w3.org/TR/2011/WD-html5-20110525/elements.html#the-lang-and-xml:lang-attributes]

But if you enter, e.g., &lt;span lang="fr">fou&lt;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