Project

General

Profile

Actions

Bug #36494

closed

GMENU img has "name" attribute instead of "id" in html5

Added by Sven Tappert almost 12 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Frontend
Start date:
2012-04-23
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.6
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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.


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #62622: Javascript variable version not setClosed2014-11-02

Actions
Related to TYPO3 Core - Bug #75983: GMENU rollover not workingClosed2016-04-29

Actions
Actions

Also available in: Atom PDF