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.
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.
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
Last Resolved: 14 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.