[TYPO3-core] FYI24: #10953: Validation issue: <a> attribute "href" lacks value in shortcut menu
Patrick Broens
patrick at netcreators.com
Wed Apr 22 12:06:38 CEST 2009
Hi,
this is a SVN patch request.
Type: Bugfix
Bugtracker references:
http://bugs.typo3.org/view.php?id=10953
Branches: Trunk
Problem:
The anchor tags of the shortcut menu, produced by
typo3/classes/class.shortcutmenu.php, have empty href attributes, which
is a validation issue. This happens when there are shortcuts available
in the menu.
Solution:
Add a "#" to the href attribute and a "return false" at the end of the
"onclick" in the anchor tag.
Remarks:
Some people will say that you also can use "javascript: void(0);" in the
href attribute. This is true, but can have some side effects in IE. The
image in the anchor sometimes not gets displayed, although it is there.
Notes:
I consider this a no-brainer, as it does not change any functionality,
only proper markup.
Cheers,
Patrick
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 20090422_RFC_10953.diff
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090422/2aeff190/attachment.txt
More information about the TYPO3-team-core
mailing list