From: Aryeh Gregor Date: Mon, 10 Aug 2009 01:42:45 +0000 (+0000) Subject: Don't use summary attribute in TOCs X-Git-Tag: 1.31.0-rc.0~40396 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=6babcbbeeb7b6418e57951ec2d33a9358f5d640d;p=lhc%2Fweb%2Fwiklou.git Don't use summary attribute in TOCs The summary attribute is obsolete in HTML 5. It wasn't serving any useful purpose anyway, since it duplicated the h2 inside the table. (Of course, we should really stop using for TOCs altogether!) --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 2cacdc2d53..c311be2419 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -196,6 +196,8 @@ this. Was used when mwEmbed was going to be an extension. cutting-edge browsers. E.g., some inputs will be autofocused, users will not be allowed to submit forms with certain types of invalid values (like numbers outside the permitted ranges), etc. +** The summary attribute has been removed from tables of contents. summary is + obsolete in HTML 5 and wasn't useful here anyway. * New hook SpecialRandomBeforeSQL allows extensions to modify or replace the SQL query used in Special:Random and subclasses, deprecating the $wgExtraRandompageSQL config variable diff --git a/includes/Linker.php b/includes/Linker.php index bcd23a7a20..bd306ce278 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -1260,7 +1260,7 @@ class Linker { global $wgJsMimeType; $title = wfMsgHtml('toc') ; return - '
' + '
' . '

' . $title . "

\n" . $toc # no trailing newline, script should not be wrapped in a