Problems with some comment tags in HTML-code

VERIFIED INVALID

Status

SeaMonkey
General
VERIFIED INVALID
14 years ago
13 years ago

People

(Reporter: Leif Erik Larsen, Unassigned)

Tracking

Trunk
x86
Windows XP

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

14 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007

In any HTML-document, if you write code like

<!---- --- ---->
<h1>Header1</h1>
<!---- --- --- ---->
<h2>Header2</h1>
<!---- --- ---->
<h1>Header3</h1>

then the Header2-section gets lost (not displayed) in the browser. Changing the
HTML code to

<!-- *** -->
<h1>Header1</h1>
<!-- *** *** -->
<h2>Header2</h1>
<!-- *** -->
<h1>Header3</h1>

fixed this in my HTML-documents.
I use comments like these as section-separators in my hand-written
HTML-documents, in order to make long documents more readable.

Reproducible: Always

Steps to Reproduce:

Comment 1

14 years ago
<!---- --- ----> is not valid comment syntax.  See
http://www.w3.org/TR/html401/intro/sgmltut.html#h-3.2.4
Status: UNCONFIRMED → RESOLVED
Last Resolved: 14 years ago
Resolution: --- → INVALID

Comment 2

14 years ago
See bug 102127 comment 16 and 17 if you want more details.

Verified invalid
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.