My favorites | Sign in
Google
                
New issue | Search
for
| Advanced search | Search tips
Issue 4: Javascript Snippets wrapped in HTML SCRIPT tags hides/destroys inner content of the <script> tags.
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  mikesamuel
Closed:  Apr 2007
Type-Defect
Priority-Medium


Sign in to add a comment
 
Reported by phunlock, Mar 23, 2007
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.

Comment 1 by phunlock, Mar 23, 2007
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;

Comment 2 by mikesamuel, Mar 27, 2007
thanks for the example.  Will fix.
Owner: mikesamuel
Comment 3 by mikesamuel, Mar 29, 2007
The problem occurs because the last line is <script>, not </script>.
I'm looking for </script> and not finding it.

Will fix.
Comment 4 by mikesamuel, Apr 02, 2007
This was reproduced by
http://google-code-prettify.googlecode.com/svn/trunk/tests/prettify_test.html#issue4
and is now fixed

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


Status: Fixed
Sign in to add a comment