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

Re: I think I've found a file that fails & shouldn't

From: Olivier Thereaux <ot@w3.org>
Date: Fri, 18 Apr 2003 11:35:16 +0900
Cc: "Liam Quinn" <liam@htmlhelp.com>, <www-validator@w3.org>
To: "David Thielen" <dave@windward.net>
Message-Id: <63954438-7146-11D7-909B-000393BAB03A@w3.org>


On Friday, Apr 18, 2003, at 11:27 Asia/Tokyo, David Thielen wrote:

>
> Ok, but again, then why does it fail it in the validator? I agree with
> everything you have said but I don't understand why the validator 
> fails it
> in this case.

Take Liam's example:

<p></p><p>foo</p></p>

Parse it...

<p></p>
	=> OK, paragraph opened and closed, we're done with that one
<p>foo</p>
	=> OK, paragraph opened and closed, we're done with that one
</p>
	=> uh? what's that, closing a paragraph that doesn't exist?

So eventhough you think the <p> and </p> are balanced, if you add the 
implied closing tags, they're not.

-- 
Olivier
Received on Thursday, 17 April 2003 22:35:20 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:08 GMT