W3C home > Mailing lists > Public > www-validator@w3.org > April 1999

Odd validator behaviour

From: Simon Wilkinson <sxw@dcs.ed.ac.uk>
Date: Mon, 26 Apr 1999 04:56:10 +0100 (BST)
Message-Id: <8645.199904260356@canna.dcs.ed.ac.uk>
To: www-validator@w3.org
The following is a minimal HTML code snippet which exhibits odd
behviour in the W3 Validator. (The snippet is also available
at http://www.dcs.ed.ac.uk/home/sxw/broken.html ) 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
<TITLE>Broken page test</TITLE>
<H2>Test <IMG SRC="test" ALT="test"</H2>

The important line is the one beginning <H2>.

I believe this snippet to be incorrect - the <IMG tag
never ends, and the </H2> gets gobbled - Netscape at least handles
it like that.

However, given Netscape's ropy HTML parsing, and my limited knowledge
of SGML - I'd believe that nsgmls gets it right - and that this is
correct. But could someone explain to me why?


Received on Sunday, 25 April 1999 23:56:13 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:24 UTC