Project

General

Profile

Actions

Bug #14795

closed

JS Error with JSMENU

Added by Bernhard Kraft over 19 years ago. Updated over 18 years ago.

Status:
Closed
Priority:
Should have
Category:
Frontend
Target version:
-
Start date:
2005-06-06
Due date:
% Done:

0%

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

Description

When no <base> tag is set in a page containing a JSMENU then an JS Error occurs in Firefox 1.0.3 when selecting a select-box entry.
The line in question is:
if (document.getElementsByTagName("base")[0].href != "") {

The problem is if there is no Tag named "base" then the .href operator will fail.

I attached a solution as unified diff .

(issue imported from #M1167)


Files

01__jserror_fix_jsfunc_menu_js.patch (680 Bytes) 01__jserror_fix_jsfunc_menu_js.patch Administrator Admin, 2005-06-06 15:16
jsfunc.menu.js (4.28 KB) jsfunc.menu.js Administrator Admin, 2005-07-07 20:24
T3D__09-11-09-20-38-z.t3d (1.77 KB) T3D__09-11-09-20-38-z.t3d Administrator Admin, 2005-11-09 09:20
jsfunc.menu.js.new (4.16 KB) jsfunc.menu.js.new Administrator Admin, 2005-11-09 14:46

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #14757: JSmenu with RealURL is broken (jsfunc.menu.js)ClosedBenni Mack2005-05-27

Actions
Actions

Also available in: Atom PDF