#36494GMENU img has "name" attribute instead of "id" in html5
Description
In tslib_menu::start() (class.tslib_menu.php, line 148-158) $this->nameAttribute is not correctly set to “id” for xhtmlDoctype “html5”, because at this point “$GLOBALS[‘TSFE’]->xhtmlDoctype” is an empty string.
As a result GMENUs get an obsolete “name” attribute in the img tags.
The error is caused by resetting “$GLOBALS[‘TSFE’]->xhtmlDoctype” in class.tslib_pagegen.php (line 186), since “html5” is not considered as XHTML doctype.
Possible solutions:- html5 has to be added as xhtml doctype in class.tslib_pagegen.php
- the switch statement in tslib_menu::start() should check for $GLOBALS[‘TSFE’]->config[‘config’][‘doctype’] in line 148
Version 4.5 is probably affected as well.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.