Issue Bug Closed

#14601XHTML compliance of GMENU with onmouseover images

Ernesto Baschny 03/08/05, 13:11 updated 08/12/06, 14:22

Description

Currently a GMENU is transformed into links like:

The problem is the “name” attribute in the tag, which is not allowed in XHTML 1.1. The proper replacement is the “id” attribute.

But replacing this breaks the over() and out() JavaScript functions (at least on IE).

So the solution is to:

- use ‘id’ instead of ‘name’ in tslib/class.tslib_menu.php
- fallback to getElementById(name) in the generated javascript, so that IE will find the img we are referring to

Attached is a patch on the current (8.3.2005) CVS HEAD with these changes.

(issue imported from #M874)

Reviews 0

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