Closed Bug 393426 Opened 17 years ago Closed 17 years ago

Doesn't see content if a comment on XHTML code contains --

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 214476

People

(Reporter: prophet, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6 If you code a page and put comment like: <!-- Box Start --> It doesn't affect by any browser, but if you write a comment like this: <!-- Box Start -- First page --> The content below it won't see. Sorry for bad English. Reproducible: Always Steps to Reproduce: 1. Write a new document on html/xhtml. 2. Write a comment like: <!-- THIS IS A -- TEST --> 3. Load the file. Actual Results: The content below it's hidden. Expected Results: It's necessary to unhidden it.
In real XHTML, served with an XML mime-type, including two dashes in a comment is a fatal error; in HTML, it's a feature inherited from SGML that every pair of two dashes starts and stops a comment, so "<!-- THIS IS A --" is a comment, "TEST " is misplaced text, and "--" starts another comment which doesn't end until the end of the document.
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.