Mozilla prints "-->" but there are no errors in code

VERIFIED INVALID

Status

--
minor
VERIFIED INVALID
17 years ago
14 years ago

People

(Reporter: l.fasolo, Assigned: asa)

Tracking

Trunk
x86
Windows NT

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(4 attachments)

(Reporter)

Description

17 years ago
In the page http://test.gnutemberg.org/opere.it.html
or http://test.gnutemberg.org/opere.en.html
after the second <hr> there are the characters "-->" .
I checked the document with Explorer, Netscape 4.6, Amaya
and these characters are not printed (IMO the HTML code is correct)

Tried with nighlty build 2001071704
test.gnutemberg.org could not be found.  Please provide a working URL, or upload
the source code as an attachment.
(Reporter)

Comment 2

17 years ago
Created attachment 42828 [details]
source of opere.it.html
(Reporter)

Comment 3

17 years ago
Created attachment 42829 [details]
source of opere.it.html
(Reporter)

Comment 4

17 years ago
Created attachment 42830 [details]
source of opere.it.html
(Reporter)

Comment 5

17 years ago
Created attachment 42831 [details]
source of opere.it.html
The syntax is wrong.

The comment contains the string "--" which isn't allowed.
http://www.w3.org/TR/html401/intro/sgmltut.html#h-3.2.4

The document contains the Strict doctype declaration. Syntax errors like this
aren't allowed in documents that claim to be Strict. (In the quirks mode the
comment parsing code implements a quirk for this. The string "-->" wouldn't show
up in the quirks mode.)

Resolving as INVALID.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 17 years ago
Resolution: --- → INVALID
Just to clarify this, the first comment contains:

<td><b>Copyright 1993--1998 Lars Wirzenius</b></td>

And http://www.w3.org/TR/html401/intro/sgmltut.html#h-3.2.4 states:

White space is not permitted between the markup declaration open delimiter("<!")
and the comment open delimiter ("--"), but is permitted between the comment
close delimiter ("--") and the markup declaration close delimiter (">"). A
common error is to include a string of hyphens ("---") within a comment. Authors
should avoid putting two or more adjacent hyphens inside comments.
verified
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.