Re: [VE][79] Error Message Feedback

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