Follow-up to r52963: Moved ID attributes on header elements to the spans within the...
[lhc/web/wiklou.git] / includes / Linker.php
index 3cdb545..b88ec1a 100644 (file)
@@ -1362,9 +1362,9 @@ class Linker {
         * @return string HTML headline
         */
        public function makeHeadline( $level, $attribs, $anchor, $text, $link, $legacyAnchor = false ) {
-               $ret = "<h$level id=\"$anchor\"$attribs"
+               $ret = "<h$level$attribs"
                        . $link
-                       . " <span class=\"mw-headline\">$text</span>"
+                       . " <span class=\"mw-headline\" id=\"$anchor\">$text</span>"
                        . "</h$level>";
                if ( $legacyAnchor !== false ) {
                        $ret = "<a id=\"$legacyAnchor\"></a>$ret";