Closed Bug 245348 Opened 20 years ago Closed 20 years ago

Comments inside <script> tags are closed (only) after the second </script> tag

Categories

(Core :: DOM: HTML Parser, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 219504

People

(Reporter: collares, Unassigned)

References

()

Details

(Keywords: testcase)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8a2) Gecko/20040601

In the attached testcase, a comment (<!--) inside a <script> tag is unclosed.
Mozilla closes the comment only after the second </script> tag. One would expect
the following:

* the comment to be closed after the containing <script> block is closed
OR
* the source to be commented until the end, as there is no corresponding --> tag

This happens in Quirks mode. It does not happen on Internet Explorer 6.0.3790.0
for Windows.
Attached file Testcase
This is a known issue.  Please check existing bugs no script tags and comment
parsing...  The problem is that IE's behavior is inconsistent and so far no one
has been able to really reverse-engineer it.
Whiteboard: DUPEME
I found bugs like bug 144432, but they refer to a slightly different problem.
This is the same bug as bug 219504, DUPLICATE.

*** This bug has been marked as a duplicate of 219504 ***
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Whiteboard: DUPEME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: