[TYPO3-core] RFC: XHTML compliance of GMENU with onmouseover images (#874)

Sebastian Kurfuerst sebastian at garbage-group.de
Sat Nov 12 10:51:52 CET 2005


This is a CVS patch request.

Type: (Bugfix / New feature / Code cleanup)
=> Bugfix

Description:
Currently a GMENU is transformed into links like:
<a onmouseover="over('...')" onmouseout="over('...')" href="..."><img
name="..." .../></a>
The "name" attribute in the <img> tag is not allowed in XHTML 1.1, the
proper replacement is the "id" attribute.

Solution:
- 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


Branches: (HEAD / TYPO3_3-8 / TYPO3_3-7)
=> HEAD

Bugtracker reference:
=> http://bugs.typo3.org/view.php?id=874

Greets, Sebastian
-- 
Sebastian Kurfuerst
http://garbage-group.de/kontakt.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug_0874.patch
Type: text/x-patch
Size: 3766 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20051112/a06a9967/attachment.bin 


More information about the TYPO3-team-core mailing list