#9 ✓resolved
Aman Gupta

$('<p>') causes an error

Reported by Aman Gupta | January 9th, 2009 @ 04:06 PM | in 1.1 Release

js> $('<p/>')
[object Object]

js> $('<p>')
Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
    at java.util.ArrayList.RangeCheck(ArrayList.java:546)
    at java.util.ArrayList.get(ArrayList.java:321)
    at org.mozilla.javascript.RhinoException.getScriptStackTrace(RhinoException.java:276)
    at org.mozilla.javascript.RhinoException.getScriptStackTrace(RhinoException.java:233)
    at org.mozilla.javascript.tools.ToolErrorReporter.reportException(ToolErrorReporter.java:179)
    at org.mozilla.javascript.tools.ToolErrorReporter.reportException(ToolErrorReporter.java:163)
    at org.mozilla.javascript.tools.shell.Main.evaluateScript(Main.java:527)
    at org.mozilla.javascript.tools.shell.Main.processSource(Main.java:385)
    at org.mozilla.javascript.tools.shell.Main.processFiles(Main.java:179)
    at org.mozilla.javascript.tools.shell.Main$IProxy.run(Main.java:100)
    at org.mozilla.javascript.Context.call(Context.java:499)
    at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:511)
    at org.mozilla.javascript.tools.shell.Main.exec(Main.java:162)
    at org.mozilla.javascript.tools.shell.Main.main(Main.java:140)

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

a javascript browser environment

People watching this ticket

Tags

Pages