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 <table> for TOCs altogether!)
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
global $wgJsMimeType;
$title = wfMsgHtml('toc') ;
return
- '<table id="toc" class="toc" summary="' . $title .'"><tr><td>'
+ '<table id="toc" class="toc"><tr><td>'
. '<div id="toctitle"><h2>' . $title . "</h2></div>\n"
. $toc
# no trailing newline, script should not be wrapped in a