Closed
Bug 318411
Opened 19 years ago
Closed 19 years ago
FireFox 1.5 displays raw JavaScript code instead of executing it
Categories
(Firefox :: General, defect)
Tracking
()
VERIFIED
DUPLICATE
of bug 214476
People
(Reporter: h8spams+mozilla, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051111 Firefox/1.5
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051111 Firefox/1.5
When rendering the page at the URL specified above, FireFox 1.5 shows raw JavaScript code instead of actually running the code. The JavaScript code in question works correctly in other browsers, with no JavaScript errors.
Reproducible: Always
Steps to Reproduce:
1. Go to the specified URL with either FireFox 1.0.7, Opera 8.5, Safari on Mac, or IE 6 on Windows. The page renders fine, and displays search results for the search term "test".
2. Go to the specified URL with FireFox 1.5. Raw JavaScript is displayed instead.
Actual Results:
Raw JavaScript is rendered on the page
Expected Results:
The JavaScript code should be executed instead of displayed
Reproduced on two machines, one running Windows XP with SP2, one running Windows 2000. Have not tried with FireFox 1.5 on other OSes yet.
Comment 1•19 years ago
|
||
When I select some of the page including where the problem is and view the source of the selection I see this in the source:
<!-->
That's what seems to be causing the problem. I don't see that when viewing the source of the whole page. So I guess that it is being generated by javascript. The way comments are parsed has been changed in version 1.5.
[quote]
In SGML, "--" starts a comment and "--" ends a comment. HTML just uses SGML
comments, with "<!" signalling the starts of SGML markup and ">" signalling its
end.
[/quote]
from https://bugzilla.mozilla.org/show_bug.cgi?id=214476#c4
So I think <!--> is now considered a comment which is opened and immediately closed.
Comment 2•19 years ago
|
||
*** This bug has been marked as a duplicate of 214476 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
Updated•19 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•