Bug in validator with HTML 4 documents that are towards at XHTML compliance
From: Marc A. Donges (marc@kalle.yodanet.schwaebischhall.de)
Date: Tue, Feb 01 2000
Date: Tue, 1 Feb 2000 16:43:27 -0500 (EST)
From: "Marc A. Donges" <marc@kalle.yodanet.schwaebischhall.de>
To: www-validator@w3.org
Message-ID: <20000201224303.A3234@yodanet.schwaebischhall.de>
Subject: Bug in validator with HTML 4 documents that are towards at XHTML compliance
(When answering, please send me a copy as I am not subscribed to the
list.)
Hi!
I recently tried to make my documents, which complied with HTML 4.0
Transitional, as compatible with XHTML 1.0 as possible (whithout
switching the DTD yet).
So I edited the documents for XML wellformedness. I converted "<HR>" to
"<hr />", which was OK for the validator. When changing a "<LINK [...]>"
element to "<link [...] />", the HTML-validator started reporting errors.
It considers the "</head>" element which follows to be in the wrong
context! I believe that my changes do keep the code compatible with
SGML/HTML.
When looking at the parse-tree, it seemed like the parser had worked
correctly, showing <LINK></LINK>. Can you tell me what went wrong? You
can find an example page at
<URL:http://www.yodanet.schwaebischhall.de/~marc/marc.html>.
Marc
--
_ _ Marc A. Donges +49 791 51804
'v' <marc@yodanet.schwaebischhall.de>
/ \ PGP-Key(DSA): 1024D/1C9ECFF2
W W
Fingerprint: 58B9 07A6 CBB1 7016 EB1D 7D35 EEBE 67DC 1C9E CFF2