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


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

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


  _ _  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

Received on Tuesday, 1 February 2000 16:45:33 UTC