From ee26aa351dcc552e04a0afbbc4385afc1819ccd9 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Thu, 1 Jun 2006 04:35:19 +0000 Subject: [PATCH] * Fix oddity with open tag parameters getting stuck on --- RELEASE-NOTES | 1 + includes/Sanitizer.php | 2 +- maintenance/parserTests.txt | 9 +++++++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 8d7fbe292e..0eb51eded3 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -397,6 +397,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * When showing the "blah has been undeleted" page, make sure it's a blue link * parserTests.php accepts a --file parameter to run an alternate test sutie * parser tests can now test extensions using !!hooks sections +* Fix oddity with open tag parameters getting stuck on == Compatibility == diff --git a/includes/Sanitizer.php b/includes/Sanitizer.php index 25f4d57409..30c3a21209 100644 --- a/includes/Sanitizer.php +++ b/includes/Sanitizer.php @@ -400,8 +400,8 @@ class Sanitizer { if ( $t == 'table' ) { $tagstack = array_pop( $tablestack ); } - $newparams = ''; } + $newparams = ''; } else { # Keep track for later if ( in_array( $t, $tabletags ) && diff --git a/maintenance/parserTests.txt b/maintenance/parserTests.txt index 5732c102a5..b65ded1b66 100644 --- a/maintenance/parserTests.txt +++ b/maintenance/parserTests.txt @@ -4013,6 +4013,15 @@ HTML nested ordered list, open tags (bug 5497) !! end +!! test +HTML ordered list item with parameters oddity +!! input +
  1. One
+!! result +
  1. One
+ +!! end + !!test bug 5918: autonumbering !! input -- 2.20.1