W3C home > Mailing lists > Public > www-validator@w3.org > August 2004

Re: [VE][79] Error Message Feedback

From: David Dorward <david@dorward.me.uk>
Date: Mon, 02 Aug 2004 22:12:13 +0100
To: Matt Seitz <seitz@neopathnetworks.com>
Cc: www-validator@w3.org
Message-Id: <1091481132.12603.1.camel@localhost>

On Mon, 2004-08-02 at 20:20, Matt Seitz wrote:

> Why does the Validator not report an error at the beginning of the illegal 
> element (i.e., at the <ul> tag following the <p> tag)?

In HTML, that isn't illegal. You can't have a <ul> inside a <p>, but you
don't have to have a </p> for your <p>. So when it hits the <ul> it is
the same as if it was </p><ul>.

When it its the </p> the user typed, then that is invalid, because the
</p> that actually got used was inserted by implication as above. So
this </p> doesn't match any <p> in the parse tree.

David Dorward       <http://blog.dorward.me.uk/>   <http://dorward.me.uk/>
Received on Monday, 2 August 2004 17:16:20 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:58:44 UTC