Closed Bug 609542 Opened 14 years ago Closed 14 years ago

HTML comment display error

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 214476

People

(Reporter: sefler, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.41 Safari/534.7 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 (.NET CLR 3.5.30729) Just type the HTML text and you'll will see the BUG,Ahhhaa~ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>BUG Found!!!!</title> </head> <body> <div> <!-- FireFox3.6.8 on WinXP SP3~~What a wonderful BUG! Ahhaaa~-- --> </div> </body> </html> Reproducible: Always Steps to Reproduce: 1.create a text file 2.type in Just type the HTML text and you'll will see the BUG,Ahhhaa~ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>BUG Found!!!!</title> </head> <body> <div> <!-- FireFox3.6.8 on WinXP SP3~~What a wonderful BUG! Ahhaaa~-- --> </div> </body> 3.rename it to "xx.html" and run it in firefox Actual Results: <!-- FireFox3.6.8 on WinXP SP3~~What a wonderful BUG! Ahhaaa~-- --> Expected Results: Nothing should be displayed
create an empty html file, type in the following text in and run in firefox3.6.8 on WinXP SP3: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>BUG Found!!!!</title> </head> <body> <div> <!-- FireFox3.6.8 on WinXP SP3~~What a wonderful BUG! Ahhaaa~-- --> </div> </body>
HTML 4 specifies comment parsing like this, but no browser other than Mozilla actually implemented it correctly. HTML5 has now changed the way comments are parsed to match those browser bugs..
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
To be clear, this will be "fixed" in Firefox 4.
You need to log in before you can comment on or make changes to this bug.