|
From: <var...@us...> - 2010-06-25 11:53:02
|
Revision: 7572
http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7572&view=rev
Author: vargenau
Date: 2010-06-25 11:52:55 +0000 (Fri, 25 Jun 2010)
Log Message:
-----------
Use "id" instead of "name" for <a>
Modified Paths:
--------------
trunk/lib/plugin/CreateToc.php
Modified: trunk/lib/plugin/CreateToc.php
===================================================================
--- trunk/lib/plugin/CreateToc.php 2010-06-24 16:31:07 UTC (rev 7571)
+++ trunk/lib/plugin/CreateToc.php 2010-06-25 11:52:55 UTC (rev 7572)
@@ -311,9 +311,9 @@
if (($hstart === 0) && is_string($markup->_content[$j])) {
if ($backlink) {
if ($counter)
- $anchorString = "<a href=\"$url\" name=\"$manchor\">$counterString</a> - \$2";
+ $anchorString = "<a href=\"$url\" id=\"$manchor\">$counterString</a> - \$2";
else
- $anchorString = "<a href=\"$url\" name=\"$manchor\">\$2</a>";
+ $anchorString = "<a href=\"$url\" id=\"$manchor\">\$2</a>";
} else {
$anchorString = "<a id=\"$manchor\"></a>";
if ($counter)
@@ -334,7 +334,7 @@
if ($backlink) {
if ($counter) {
- $anchorString = "\$1<a href=\"$url\" name=\"$manchor\">$counterString</a> - ";
+ $anchorString = "\$1<a href=\"$url\" id=\"$manchor\">$counterString</a> - ";
} else {
/* Not possible to make a backlink on a
* title with a WikiWord */
@@ -457,11 +457,10 @@
'class'=>'wikiaction',
'title'=>_("Click to display to TOC"),
'onclick'=>"toggletoc(this, '".$open."', '".$close."', '".$toclistid."')",
- 'border' => 0,
'alt' => 'toctoggle',
'src' => $jshide ? $close : $open )));
else
- $toclink = HTML::a(array('name'=>'TOC',
+ $toclink = HTML::a(array('id'=>'TOC',
'class'=>'wikiaction',
'title'=>_("Click to display"),
'onclick'=>"toggletoc(this, '".$open."', '".$close."', '".$toclistid."')"),
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|