Closed
Bug 296985
Opened 20 years ago
Closed 20 years ago
"<!--" character sequence in a JavaScript string causes the subsequent <script> block being ignored
Categories
(Core :: DOM: HTML Parser, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: pallosp, Unassigned)
References
()
Details
(Keywords: testcase)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511
Open a html containing the following code by Mozilla 1.7.8 of FireFox 1.0.4:
<html>
<head>
</head>
<body>
<script>
x="<!--";
</script>
<script>
document.write("ok");
</script>
</body>
</html>
The script should write "ok", but nothing happens.
Reproducible: Always
Steps to Reproduce:
Actual Results:
Empty document
Expected Results:
"ok" should appear
Comment 1•20 years ago
|
||
Works for me in Deer Park Alpha 1.
Summary: "<!--" character sequence in a JavaScript string causes the subsequent <script> block being ignored → "<!--" character sequence in a JavaScript string causes the subsequent <script> block being ignored
Comment 2•20 years ago
|
||
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 Confirmed. It was probably fixed for Deer Park.
Comment 3•20 years ago
|
||
Parser bug, WFM with current trunk build. Please reopen, if this still can be seen in current trunk build.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Component: General → HTML: Parser
Keywords: testcase
Product: Firefox → Core
Resolution: --- → WORKSFORME
Version: unspecified → Trunk
Comment 4•20 years ago
|
||
For the record, this sounds like exactly the same problem as bug 219504.
You need to log in
before you can comment on or make changes to this bug.
Description
•