From: <var...@us...> - 2014-06-13 14:14:05
|
Revision: 8911 http://sourceforge.net/p/phpwiki/code/8911 Author: vargenau Date: 2014-06-13 14:13:58 +0000 (Fri, 13 Jun 2014) Log Message: ----------- Table summary attribute is obsolete in HTML 5 Modified Paths: -------------- trunk/lib/plugin/MediawikiTable.php trunk/lib/plugin/OldStyleTable.php trunk/lib/plugin/RichTable.php trunk/pgsrc/Help%2FMediawikiTablePlugin trunk/pgsrc/Help%2FOldStyleTablePlugin Modified: trunk/lib/plugin/MediawikiTable.php =================================================================== --- trunk/lib/plugin/MediawikiTable.php 2014-06-13 13:56:02 UTC (rev 8910) +++ trunk/lib/plugin/MediawikiTable.php 2014-06-13 14:13:58 UTC (rev 8911) @@ -102,7 +102,7 @@ if (in_array($key, array("id", "class", "title", "style", "bgcolor", "frame", "rules", "border", "cellspacing", "cellpadding", - "summary", "align", "width")) + "align", "width")) ) { $table->setAttr($key, $value); } @@ -153,12 +153,6 @@ continue; } - // Table summary - if (substr($line, 0, 2) == "|=") { - $line = substr($line, 2); - $table->setAttr("summary", trim($line)); - } - // Table caption if (substr($line, 0, 2) == "|+") { Modified: trunk/lib/plugin/OldStyleTable.php =================================================================== --- trunk/lib/plugin/OldStyleTable.php 2014-06-13 13:56:02 UTC (rev 8910) +++ trunk/lib/plugin/OldStyleTable.php 2014-06-13 14:13:58 UTC (rev 8911) @@ -58,7 +58,6 @@ 'cellpadding' => '1', 'cellspacing' => '1', 'border' => '1', - 'summary' => '', ); } @@ -92,7 +91,7 @@ $table = HTML::table($table_args); if (!empty($caption)) $table->pushContent(HTML::caption($caption)); - if (preg_match("/^\s*(cellpadding|cellspacing|border|caption|summary)/", $lines[0])) + if (preg_match("/^\s*(cellpadding|cellspacing|border|caption)/", $lines[0])) $lines[0] = ''; foreach ($lines as $line) { if (!$line) Modified: trunk/lib/plugin/RichTable.php =================================================================== --- trunk/lib/plugin/RichTable.php 2014-06-13 13:56:02 UTC (rev 8910) +++ trunk/lib/plugin/RichTable.php 2014-06-13 14:13:58 UTC (rev 8911) @@ -54,7 +54,7 @@ if (in_array($key, array("id", "class", "title", "style", "bgcolor", "frame", "rules", "border", "cellspacing", "cellpadding", - "summary", "align", "width")) + "align", "width")) ) { $table->setAttr($key, $value); } Modified: trunk/pgsrc/Help%2FMediawikiTablePlugin =================================================================== --- trunk/pgsrc/Help%2FMediawikiTablePlugin 2014-06-13 13:56:02 UTC (rev 8910) +++ trunk/pgsrc/Help%2FMediawikiTablePlugin 2014-06-13 14:13:58 UTC (rev 8911) @@ -1,4 +1,4 @@ -Date: Tue, 9 Nov 2010 14:24:02 +0000 +Date: Fri, 13 Jun 2014 16:12:42 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.4.0) Content-Type: application/x-phpwiki; pagename=Help%2FMediawikiTablePlugin; @@ -13,16 +13,11 @@ * The table starts with a line ##{|##. * An optional table caption is made with a line starting with a pipe and a plus sign ##|+## followed by the caption. -* An optional table summary is made with a line starting with a pipe and an equal sign ##|=## followed by the summary. * A table row starts with a pipe and a hyphen: ##|-##. * A table cell starts with a pipe on a new line, or a double bar ##||## on the same line. * A header table cell starts with an exclamation mark, or a double exclamation mark ##!!## on the same line. * The table ends with a line ##|}##. -The summary syntax is an extension to the Mediawiki syntax. -You can also simply put the summary as an attribute to the table. -The summary is necessary to be able to create accessible tables. - If the first row of the table as made with header cells only, this row will be put in a //thead//. In that case, this row will be repeated on every page when printing the table. @@ -76,7 +71,6 @@ {| border="1" style="width: 100%" |+ style="font-weight: bold; font-size: 150%;" | This is the table caption -|= This is the table summary |- style="white-space: nowrap" ! Header 1 ! Header 2 @@ -94,7 +88,6 @@ {{{ {| border="1" style="width: 100%" |+ style="font-weight: bold; font-size: 150%;" | This is the table caption -|= This is the table summary |- style="white-space: nowrap" ! Header 1 ! Header 2 Modified: trunk/pgsrc/Help%2FOldStyleTablePlugin =================================================================== --- trunk/pgsrc/Help%2FOldStyleTablePlugin 2014-06-13 13:56:02 UTC (rev 8910) +++ trunk/pgsrc/Help%2FOldStyleTablePlugin 2014-06-13 14:13:58 UTC (rev 8911) @@ -1,4 +1,4 @@ -Date: Thu, 16 Dec 2010 12:53:03 +0000 +Date: Fri, 13 Jun 2014 16:12:42 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.4.0) Content-Type: application/x-phpwiki; pagename=Help%2FOldStyleTablePlugin; @@ -61,10 +61,6 @@ | **cellpadding** | Any number | 1 -|- -| **summary** -| Any string -| Empty string |} == Syntax == This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |