nbell12 / google-code-prettify

Automatically exported from code.google.com/p/google-code-prettify
Apache License 2.0
0 stars 0 forks source link

Javascript Snippets wrapped in HTML SCRIPT tags hides/destroys inner content of the <script> tags. #4

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. In your pre block have a <script> tag followed by javascript.

What is the expected output? What do you see instead?
Expect to see colorized HTML followed by colorized Javascript.   Saw only
the first script line, the rest of the block had been hidden/deleted in
Firefox.

What version of the product are you using? On what operating system?
Win XP.

Original issue reported on code.google.com by phunl...@gmail.com on 23 Mar 2007 at 10:09

GoogleCodeExporter commented 8 years ago
Code which reproduces the problem...

&lt;script type="text/javascript"&gt;
   var savedTarget=null;                           // The target layer (effectively
vidPane)
   var orgCursor=null;                             // The original mouse style so we
can restore it
   var dragOK=false;                               // True if we're allowed to move
the element under mouse
   var dragXoffset=0;                              // How much we've moved the
element on the horozontal
   var dragYoffset=0;                              // How much we've moved the
element on the verticle
   vidPaneID = document.getElementById('vidPane'); // Our movable layer
   vidPaneID.style.top='75px';                     // Starting location horozontal
   vidPaneID.style.left='75px';                    // Starting location verticle
&lt;script&gt;

Original comment by phunl...@gmail.com on 23 Mar 2007 at 1:29

GoogleCodeExporter commented 8 years ago
thanks for the example.  Will fix.

Original comment by mikesamuel@gmail.com on 27 Mar 2007 at 6:57

GoogleCodeExporter commented 8 years ago
The problem occurs because the last line is <script>, not </script>.
I'm looking for </script> and not finding it.

Will fix.

Original comment by mikesamuel@gmail.com on 30 Mar 2007 at 4:06

GoogleCodeExporter commented 8 years ago
This was reproduced by
http://google-code-prettify.googlecode.com/svn/trunk/tests/prettify_test.html#is
sue4
and is now fixed

http://google-code-prettify.googlecode.com/svn/trunk/CHANGES.html

Original comment by mikesamuel@gmail.com on 2 Apr 2007 at 6:47