Closed Bug 412761 Opened 17 years ago Closed 17 years ago

Wrong parsing javascript after html comments

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 214476

People

(Reporter: demjanich, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11 This code show wrong html in browser: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <body> <!-- -------------------------- --> <script type="text/javascript"> <!-- // a = '<b>2</b>'; //--> </script> </body> </html> Reproducible: Always Steps to Reproduce: Launch this code in Firefox or Netscape Actual Results: 2'; //--> Expected Results: It must be blank page. If change string -------------------------- in comment tags, when all ok. :)
According to the html specification you aren't allowed sequences of dashes inside comments.
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.