Closed Bug 266435 Opened 20 years ago Closed 20 years ago

Javascript-finisher "</script>" is interpreted too early in a PHP file

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: eiweiss, Assigned: bugs)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20041001 Firefox/0.10.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20041001 Firefox/0.10.1

This script should make thumbnails and open them bigger, when you click on it. I
used an old Javascript to make open a new window with the picture in it. Using
it normally without this PHP-page the script works flawlessly. On the php-page
the command </script> is interpreted too early (the first </script> command is
for the  javascript that is executed in the opened file>. Upon opening the
source-code of the displayed page it's easy to see the bug. Strangely it works
fine with either IE or Safari. Due to that early script-termination the whole
javascript fails (which normally works fine).
I tried to make a workaround but I am not so skilled with all the programming ;)

Reproducible: Always
Steps to Reproduce:
1. Just load the page.
2.
3.

Actual Results:  
The page is displayed wrong. There is some Text that should be hidden by the
Javascript-"brackets" (<script> [...] </script>)). The following text is too much!
'); writeln(''); writeln(''); writeln('
loading...
'); writeln('
'+text+'

'); writeln('Click to close'); writeln('
'); writeln(''); close(); } } -->


Expected Results:  
The whole script should be executed, and so the page should be displayed
correctly. There should be no text except for the gallery and it's title...
Search google for "scr+ipt" and you should find plenty of examples and
explanations of writing ("</scr"+"ipt>") instead.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
--> Websites :: www.mozilla.com so timeless can close out Firefox :: Product Site.
Component: Product Site → www.mozilla.com
Product: Firefox → Websites
-> Firefox::General (939393)
Component: www.mozilla.com → General
Product: Websites → Firefox
You need to log in before you can comment on or make changes to this bug.