Closed Bug 91441 Opened 25 years ago Closed 25 years ago

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

Categories

(SeaMonkey :: General, defect)

x86
Windows NT
defect
Not set
minor

Tracking

(Not tracked)

VERIFIED INVALID

People

(Reporter: l.fasolo, Assigned: asa)

References

()

Details

Attachments

(4 files)

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.
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
Closed: 25 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.

Attachment

General

Creator:
Created:
Updated:
Size: