Remove a use of xml:lang that I missed in r62312
authorAryeh Gregor <simetrical@users.mediawiki.org>
Sun, 28 Mar 2010 01:37:49 +0000 (01:37 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Sun, 28 Mar 2010 01:37:49 +0000 (01:37 +0000)
If this is required for some reason for RDFa, it should be allowed only
when RDFa is enabled, like xmlns:.

includes/Sanitizer.php

index fd51b92..45b2cf6 100644 (file)
@@ -1253,7 +1253,7 @@ class Sanitizer {
        static function setupAttributeWhitelist() {
                global $wgAllowRdfaAttributes, $wgHtml5, $wgAllowMicrodataAttributes;
 
-               $common = array( 'id', 'class', 'lang', 'dir', 'title', 'style', 'xml:lang' );
+               $common = array( 'id', 'class', 'lang', 'dir', 'title', 'style' );
 
                if ( $wgAllowRdfaAttributes ) {
                        #RDFa attributes as specified in section 9 of http://www.w3.org/TR/2008/REC-rdfa-syntax-20081014