Closed Bug 322937 Opened 19 years ago Closed 19 years ago

Two HTML comments followed

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

VERIFIED INVALID

People

(Reporter: lequation, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; es-AR; rv:1.8) Gecko/20051111 Firefox/1.5
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; es-AR; rv:1.8) Gecko/20051111 Firefox/1.5

In a page I was using the follow code, with these comments.
<!-- SECTION 1 -->
[HTML CODE HERE]
<!-- --------- -->
<!-- SECTION 2 --> 
[HTML CODE HERE]
<!-- --------- -->

I can't see the SECTION 2 in Firefox, but in IE work ok. In the Source code view menu the code between the second comment <!-- and the close of the fourth -->, that is the HTML CODE in SECTION 2, was like a comment HTML area.  

This code work ok.
<!-- SECTION 1 -->
[HTML CODE HERE]
<!-- --------- 
 SECTION 2 --> 
[HTML CODE HERE]
<!-- --------- -->

I'sorry if my explain it's not good, my language it's not the english.

Thanks.


Reproducible: Always
If, as you show in your example, you have "--" inside the comment sections, then this is the problem.  I don't know the URL from memory, but the specs are pretty clear about this: "--" is not allowed inside a comment.  There have been several bugs discussing this in the past.  As I say, if this is the problem then the bug is invalid.  Could we have the source-code you have aproblem with to confirm/exclude this?
See bug 214476.  If this is the problem, then this bug is a dupe.
Yes, this is invalid, you shouldn't use a string of hyphens within a comment.
See also bug 102127 for an explanation (we have dozens of reports on this).
(In reply to comment #3)
> Yes, this is invalid, you shouldn't use a string of hyphens within a comment.
> See also bug 102127 for an explanation (we have dozens of reports on this).

Sorry, i don't know about the invalid character in the comments, because in IE the code works i didn't think that's the problem. 
thanks and sorry again.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.