Closed
Bug 305122
Opened 20 years ago
Closed 20 years ago
Firefox incorrectly renders close comment tag under XHTML 1.0 Transitional
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 235628
People
(Reporter: mozilla.org, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6
Firebox incorrectly renders close comment tag when DOCTYPE is specified as XHTML
transitional and a double-hyphen is somewhere in the enclosed commented-out text.
If the double-hyphen in the commented text is removed, it renders correctly.
If the DOCTYPE is removed, it renders correctly.
Reproducible: Always
Steps to Reproduce:
1. Add/remove DOCTYPE tag to observe broken close comment tag, or
1. Change -- to - in the commented text.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Test Comment</title>
</head>
<body>
<p>Something</p>
<!--
<p>Try with double or single--dash?</p>
-->
<p>Else</p>
</body>
</html>
Actual Results:
Something
-->
Else
(versus)
Something
Else
Expected Results:
Something
Else
Comment 1•20 years ago
|
||
*** This bug has been marked as a duplicate of 235628 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•