r64281 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r64280‎ | r64281 | r64282 >
Date:01:37, 28 March 2010
Author:simetrical
Status:ok
Tags:
Comment:
Remove a use of xml:lang that I missed in r62312

If this is required for some reason for RDFa, it should be allowed only
when RDFa is enabled, like xmlns:.
Modified paths:
  • /trunk/phase3/includes/Sanitizer.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Sanitizer.php
@@ -1253,7 +1253,7 @@
12541254 static function setupAttributeWhitelist() {
12551255 global $wgAllowRdfaAttributes, $wgHtml5, $wgAllowMicrodataAttributes;
12561256
1257 - $common = array( 'id', 'class', 'lang', 'dir', 'title', 'style', 'xml:lang' );
 1257+ $common = array( 'id', 'class', 'lang', 'dir', 'title', 'style' );
12581258
12591259 if ( $wgAllowRdfaAttributes ) {
12601260 #RDFa attributes as specified in section 9 of http://www.w3.org/TR/2008/REC-rdfa-syntax-20081014

Follow-up revisions

RevisionCommit summaryAuthorDate
r64282Backport r64281 "Remove a use of xml:lang that I missed in r62312"...simetrical01:41, 28 March 2010

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r62312War on xml:lang...simetrical17:25, 11 February 2010

Status & tagging log