r14508 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r14507‎ | r14508 | r14509 >
Date:04:35, 1 June 2006
Author:brion
Status:old
Tags:
Comment:
* Fix oddity with open tag parameters getting stuck on </li>
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/Sanitizer.php (modified) (history)
  • /trunk/phase3/maintenance/parserTests.txt (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/parserTests.txt
@@ -4013,6 +4013,15 @@
40144014
40154015 !! end
40164016
 4017+!! test
 4018+HTML ordered list item with parameters oddity
 4019+!! input
 4020+<ol><li id="fragment">One</li></ol>
 4021+!! result
 4022+<ol><li id="fragment">One</li></ol>
 4023+
 4024+!! end
 4025+
40174026 !!test
40184027 bug 5918: autonumbering
40194028 !! input
Index: trunk/phase3/includes/Sanitizer.php
@@ -400,8 +400,8 @@
401401 if ( $t == 'table' ) {
402402 $tagstack = array_pop( $tablestack );
403403 }
404 - $newparams = '';
405404 }
 405+ $newparams = '';
406406 } else {
407407 # Keep track for later
408408 if ( in_array( $t, $tabletags ) &&
Index: trunk/phase3/RELEASE-NOTES
@@ -397,6 +397,7 @@
398398 * When showing the "blah has been undeleted" page, make sure it's a blue link
399399 * parserTests.php accepts a --file parameter to run an alternate test sutie
400400 * parser tests can now test extensions using !!hooks sections
 401+* Fix oddity with open tag parameters getting stuck on </li>
401402
402403
403404 == Compatibility ==

Status & tagging log