Issue Bug Closed

#20337Validation issue: <a> attribute "href" lacks value in shortcut menu

Patrick Broens 04/22/09, 12:00 updated 10/02/18, 12:27

Description

Branches: Trunk

Problem:
The shortcut menu, produced by typo3/classes/class.shortcutmenu.php, has an empty href attribute, 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” to 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.

(issue imported from #M10953)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.