Closed Bug 199794 Opened 22 years ago Closed 22 years ago

All html between two comments is seen as comment.

Categories

(Core :: DOM: HTML Parser, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: james, Assigned: harishd)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3) Gecko/20030312 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3) Gecko/20030312 The following HTML demonstrates the issue in a much simpler situation: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML (3)2 Final//EN"> <HTML> <HEAD> <TITLE>Comment Bug</TITLE> </HEAD> <BODY> <p>This will be seen</p> <!-- ----------------- First Comment ------------- --> <p>This will be seen, too.</p> <!-- ------------------ Closing Comment ---------- --> <p>This will also be seen</p> <!-- ------------------ Beginning of Content Area ------------- --> <p>This will not.</p> <!-- ------------------ End of Content Area ----------------- --> </BODY> </HTML> Reproducible: Always Steps to Reproduce: 1. Save the HTML code to a file. 2. Display it in Mozilla or Netscape 7. 3. It will not display the line "This will not. Actual Results: You should see: This will be seen This will be seen, too. This will also be seen Expected Results: It should show: This will be seen This will be seen, too. This will also be seen This will not.
I can´t give you the exact reason, but you shouldn´t use multiple dashes in comments. That is the reason for what you are seeing. You can try to adjust the number of continuous dashes to a multiple of 2, 4, or non-multiple, I don´t know, so it would be easiest to avoid it.
invalid There is an explanation of this in bug 186768
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.