Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

$('<p>') causes an error

#9
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)

Reported by Aman Gupta · January 9th, 2009 @ 04:06 PM

State: resolved
Milestone: 1.1 Release
Assigned to: Thatcher Thatcher

Activity

  1. Thatcher
    Thatcher
    • Tag set to error, parse
    • Assigned user set to thatcher.christopher (at gmail)

    added a patch. thanks aman

    January 15th, 2009 @ 11:30 AM

  2. thatcher.christopher (at gmail)
  3. thatcher.christopher (at gmail)
    thatcher.christopher (at gmail)

    Thanks aman, I'll get this in asap, it seems very reasonable, and the later change is definitely a bug fix.

    January 20th, 2009 @ 06:53 AM

  4. thatcher.christopher (at gmail)
  5. Thatcher
    Thatcher
    • Milestone changed from 1.0 Release to 1.1 Release
    • Assigned user cleared.

    general relaxed parsing is being moved to 1.1

    September 9th, 2009 @ 06:03 PM

  6. Thatcher
    Thatcher
    • State changed from open to resolved
    • Assigned user set to Thatcher

    This is fixed! html5 parser can accept all kinds of malformed xml now

    November 12th, 2009 @ 05:13 AM

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.