* Remove redundant extra span tag
authorRob Church <robchurch@users.mediawiki.org>
Sat, 27 May 2006 00:31:06 +0000 (00:31 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Sat, 27 May 2006 00:31:06 +0000 (00:31 +0000)
* Fix parser test for self-links

includes/Linker.php
maintenance/parserTests.txt

index 0bafe0e..de0ce12 100644 (file)
@@ -426,7 +426,7 @@ class Linker {
                        $text = htmlspecialchars( $nt->getPrefixedText() );
                }
                list( $inside, $trail ) = Linker::splitTrail( $trail );
-               return "<span class=\"selflink\"><strong>{$prefix}{$text}{$inside}</strong></span>{$trail}";
+               return "<strong class=\"selflink\">{$prefix}{$text}{$inside}</strong>{$trail}";
        }
 
        /** @todo document */
index 6bc097d..34dcf50 100644 (file)
@@ -1255,7 +1255,7 @@ title=[[Bug462]]
 !! input
 [[Bu&#103;462]] [[Bug462]]
 !! result
-<p><strong>Bu&#103;462</strong> <strong>Bug462</strong>
+<p><strong class="selflink">Bu&#103;462</strong> <strong class="selflink">Bug462</strong>
 </p>
 !! end