#176 new
Mark Porter

Cannot parse pre tags

Reported by Mark Porter | August 15th, 2010 @ 04:41 AM

Platform: Rhino 1.7.x(from CVS) / MynaJS 1.0 beta 6 (http://www.mynajs.org)

EnvJS version: 1.2 released

It appears that evnjs cannot parse PRE tags. Here is a simple example and the error generated:

Document:

this is a simple test
<pre>stuff in pre tag </pre>
stuff after pre tag

Error:

[  Envjs/1.6 (Rhino; U; Linux amd64 2.6.32-24-generic; en-US; rv:1.7.0.rc2) Resig/20070309 PilotFish/1.2.13  ]
parsererror  com.google.gwt.core.client.JavaScriptException: (TypeError): org.mozilla.javascript.Undefined@154db52b is not a function, it is undefined.
 fileName: /shared/js/env.rhino.js
 lineNumber: 6639
 stack:         at /shared/js/env.rhino.js:6639

    at /shared/js/env.rhino.js:6684
    at /shared/js/env.rhino.js:11777 (smi)
    at /shared/js/env.rhino.js:11701 (lYi)
    at /shared/js/env.rhino.js:11759 (i0i)
    at /shared/js/env.rhino.js:11843 (uWi)
    at /shared/js/env.rhino.js:11860 (jXi)
    at /shared/js/env.rhino.js:11861 (kXi)
    at /shared/js/env.rhino.js:11795 (Dni)
    at /shared/js/env.rhino.js:11794 (Cni)
    at /shared/js/env.rhino.js:11805 (xni)
    at /shared/js/env.rhino.js:11987
    at /shared/js/env.rhino.js:12990
    at /shared/js/env.rhino.js:12952
    at /shared/js/env.rhino.js:13124 (makeRequest)
    at /shared/js/env.rhino.js:13137
    at /shared/js/env.rhino.js:12955
    at /shared/js/env.rhino.js:13811



Comments and changes to this ticket

  • pmoriarty

    pmoriarty March 28th, 2011 @ 04:45 AM

    This is causing problems integrating with the latest QUnit which uses the PRE tag in results.

  • Gimmi

    Gimmi April 23rd, 2011 @ 07:20 AM

    Apart form patching QUnit, is there a workaround to make Envjs usable in conjunction with QUnit?

    IMHO This bug should be hight priority.

  • s4me

    s4me October 12th, 2011 @ 10:13 AM

    Using jQuery JavaScript Library v1.4.1, having the similar problem, I don't get the JavascriptException,

    1. window.location='SOME HTTP page containing PRE tags wrapped in DIV';
    2. no exception at this point
    3. $('div.SOME_ID').html() returns

      ...

      ... <----- missing PRE tag
  • s4me

    s4me October 12th, 2011 @ 10:16 AM

    additional info:
    Rhino 1.7, Envjs/1.6 jQuery 1.4.1

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

Pages