Skip to main content

Bug Tracker

Side navigation

#1456 closed bug (invalid)

Opened August 01, 2007 10:45PM UTC

Closed January 24, 2008 06:17PM UTC

E4X issue: elem.nodeName.toUpperCase is undefined

Reported by: joern Owned by: joern
Priority: major Milestone: 1.1.4
Component: web Version: 1.1.3
Keywords: Cc:
Blocked by: Blocking:
Description

jQuery's nodeName function doesn't quite work with E4X elements, eg. this causes an exception (see below):

$("body").append(<h3>Hi!</h3>);

The offending line is this:

return elem.nodeName && elem.nodeName.toUpperCase() == name.toUpperCase();

Seems like elem.nodeName what jQuery expects, therefore toUpperCase is undefined.

org.mozilla.javascript.EcmaError: TypeError: Cannot find function toUpperCase. (C:\\dev\\workspace-rad7\\.metadata\\.plugins\\org.eclipse.wst.server.core\\tmp1\\webapps\\jQueryWeb\\WEB-INF/jquery.js#330)
	org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3343)
	org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3333)
	org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3349)
	org.mozilla.javascript.ScriptRuntime.typeError1(ScriptRuntime.java:3361)
	org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:3421)
	org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2052)
	org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:117)
	org.mozilla.javascript.gen.c178._c48(C:\\dev\\workspace-rad7\\.metadata\\.plugins\\org.eclipse.wst.server.core\\tmp1\\webapps\\jQueryWeb\\WEB-INF/jquery.js:330)
	org.mozilla.javascript.gen.c178.call(C:\\dev\\workspace-rad7\\.metadata\\.plugins\\org.eclipse.wst.server.core\\tmp1\\webapps\\jQueryWeb\\WEB-INF/jquery.js)
	org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:76)
	org.mozilla.javascript.gen.c178._c64(C:\\dev\\workspace-rad7\\.metadata\\.plugins\\org.eclipse.wst.server.core\\tmp1\\webapps\\jQueryWeb\\WEB-INF/jquery.js:537)
	org.mozilla.javascript.gen.c178.call(C:\\dev\\workspace-rad7\\.metadata\\.plugins\\org.eclipse.wst.server.core\\tmp1\\webapps\\jQueryWeb\\WEB-INF/jquery.js)
	org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2234)
	org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:257)
	org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:127)
	org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:76)
	org.mozilla.javascript.gen.c178._c49(C:\\dev\\workspace-rad7\\.metadata\\.plugins\\org.eclipse.wst.server.core\\tmp1\\webapps\\jQueryWeb\\WEB-INF/jquery.js:339)
	org.mozilla.javascript.gen.c178.call(C:\\dev\\workspace-rad7\\.metadata\\.plugins\\org.eclipse.wst.server.core\\tmp1\\webapps\\jQueryWeb\\WEB-INF/jquery.js)
	org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:76)
	org.mozilla.javascript.gen.c178._c63(C:\\dev\\workspace-rad7\\.metadata\\.plugins\\org.eclipse.wst.server.core\\tmp1\\webapps\\jQueryWeb\\WEB-INF/jquery.js:473)
	org.mozilla.javascript.gen.c178.call(C:\\dev\\workspace-rad7\\.metadata\\.plugins\\org.eclipse.wst.server.core\\tmp1\\webapps\\jQueryWeb\\WEB-INF/jquery.js)
	org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:76)
	org.mozilla.javascript.gen.c178._c42(C:\\dev\\workspace-rad7\\.metadata\\.plugins\\org.eclipse.wst.server.core\\tmp1\\webapps\\jQueryWeb\\WEB-INF/jquery.js:274)
	org.mozilla.javascript.gen.c178.call(C:\\dev\\workspace-rad7\\.metadata\\.plugins\\org.eclipse.wst.server.core\\tmp1\\webapps\\jQueryWeb\\WEB-INF/jquery.js)
	org.mozilla.javascript.ScriptRuntime.applyOrCall(ScriptRuntime.java:2234)
	org.mozilla.javascript.BaseFunction.execIdCall(BaseFunction.java:257)
	org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:127)
	org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:76)
	org.mozilla.javascript.gen.c178._c49(C:\\dev\\workspace-rad7\\.metadata\\.plugins\\org.eclipse.wst.server.core\\tmp1\\webapps\\jQueryWeb\\WEB-INF/jquery.js:339)
	org.mozilla.javascript.gen.c178.call(C:\\dev\\workspace-rad7\\.metadata\\.plugins\\org.eclipse.wst.server.core\\tmp1\\webapps\\jQueryWeb\\WEB-INF/jquery.js)
	org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:86)
	org.mozilla.javascript.gen.c178._c7(C:\\dev\\workspace-rad7\\.metadata\\.plugins\\org.eclipse.wst.server.core\\tmp1\\webapps\\jQueryWeb\\WEB-INF/jquery.js:92)
	org.mozilla.javascript.gen.c178.call(C:\\dev\\workspace-rad7\\.metadata\\.plugins\\org.eclipse.wst.server.core\\tmp1\\webapps\\jQueryWeb\\WEB-INF/jquery.js)
	org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:66)
	org.mozilla.javascript.gen.c178._c41(C:\\dev\\workspace-rad7\\.metadata\\.plugins\\org.eclipse.wst.server.core\\tmp1\\webapps\\jQueryWeb\\WEB-INF/jquery.js:272)
	org.mozilla.javascript.gen.c178.call(C:\\dev\\workspace-rad7\\.metadata\\.plugins\\org.eclipse.wst.server.core\\tmp1\\webapps\\jQueryWeb\\WEB-INF/jquery.js)
	org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:86)
	org.mozilla.javascript.gen.c178._c18(C:\\dev\\workspace-rad7\\.metadata\\.plugins\\org.eclipse.wst.server.core\\tmp1\\webapps\\jQueryWeb\\WEB-INF/jquery.js:168)
	org.mozilla.javascript.gen.c178.call(C:\\dev\\workspace-rad7\\.metadata\\.plugins\\org.eclipse.wst.server.core\\tmp1\\webapps\\jQueryWeb\\WEB-INF/jquery.js)
Attachments (0)
Change History (2)

Changed August 01, 2007 10:46PM UTC by joern comment:1

summary: E4X issue:E4X issue: elem.nodeName.toUpperCase is undefined

Changed January 24, 2008 06:17PM UTC by joern comment:2

resolution: → invalid
status: newclosed