Skip to content
This repository has been archived by the owner on Apr 22, 2020. It is now read-only.

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

Closed
GoogleCodeExporter opened this issue Apr 22, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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
Copy link
Author

thanks for the example.  Will fix.

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

@GoogleCodeExporter
Copy link
Author

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
Copy link
Author

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

  • Changed state: Fixed

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants