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 March 28th, 2011 @ 04:45 AM
This is causing problems integrating with the latest QUnit which uses the PRE tag in results.
-
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 October 12th, 2011 @ 10:13 AM
Using jQuery JavaScript Library v1.4.1, having the similar problem, I don't get the JavascriptException,
- window.location='SOME HTTP page containing PRE tags wrapped in
DIV';
- no exception at this point
-
$('div.SOME_ID').html() returns
...
... <----- missing PRE tag
- window.location='SOME HTTP page containing PRE tags wrapped in
DIV';
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