Closed
Bug 596142
Opened 14 years ago
Closed 14 years ago
HTML comments displayed
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 214476
People
(Reporter: this.bool32, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Version/3.1.2 Safari/525.21
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
Formatted html comments in a page I was beginning to write are being displayed unintentionally. Specifically, this example displays the comment:
<!-- ------------------ END center me -->
unintentionally.
This seems to be reproducible always, tested in FF and Safari 312:52521 (dated Safari installation) and only occurs in FF.
Don't want to confuse things, so here is the HTML code :
// start code
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
lang="en-US"
xml:lang="en-US">
<head>
<title>
Demo: html Comment bug
</title>
</head>
<body>
<div>
<!-- center me -->
<ul>
<!-- global nav -->
<li>
hello
</li>
</ul>
<!-- ------------------- END global nav -->
<div>
<!-- Content -->
hello
</div>
<!-- ------------------ END content -->
</div>
<!-- ------------------ END center me -->
</body>
</html>
// End code
Observations:
The length of the closing hyphen strings(sections with continuous hyphens) seems to affect things as does removing the initial xml version declaration. (Hope I didn't make some noob error here ><; )
As time permits, will test what other conditions affect the comment display and post back as appropriate.
Reproducible: Always
Steps to Reproduce:
1. Open a file with the markup in the "Details" section.
2.
3.
Actual Results:
Displays:
<!-- ------------------ END center me -->
unintentionally.
Expected Results:
Comment hidden.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•