$('<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
-
Thatcher January 15th, 2009 @ 11:30 AM
- Tag set to error, parse
- Assigned user set to thatcher.christopher (at gmail)
added a patch. thanks aman
-
thatcher.christopher (at gmail) January 15th, 2009 @ 12:11 PM
- State changed from new to open
-
thatcher.christopher (at gmail) January 20th, 2009 @ 06:53 AM
Thanks aman, I'll get this in asap, it seems very reasonable, and the later change is definitely a bug fix.
-
thatcher.christopher (at gmail) January 31st, 2009 @ 06:18 AM
- Milestone set to 1.0 Release
-
Thatcher September 9th, 2009 @ 06:03 PM
- Milestone changed from 1.0 Release to 1.1 Release
- Assigned user cleared.
general relaxed parsing is being moved to 1.1
-
Thatcher November 12th, 2009 @ 05:13 AM
- State changed from open to resolved
- Assigned user set to Thatcher
This is fixed! html5 parser can accept all kinds of malformed xml now
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.
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