Re: Cleaning House

On 5/2/07, David Woolley <forums@david-woolley.me.uk> wrote:
>
> Lee Roberts wrote:
> > <title>Some Title</title>
> > <p>Some text.</p>
>
> To be valid it needs a doctype declaration, but other than that it
> is valid and well formed HTML 4.01 Strict, although not minimal, as
> the </p> tag is not needed.

In html4, yes.

Accepting this sort of tag soup because of technicalities encourages
sloppy markup in general.  Support for this sort of exception
complicates parsers.

My preference would be that HTML5 declare it invalid, but specify the
error handling in the user-agent error-handling section.  A browser
aiming for mass adoption would need to get it right; a demonstration
parser should consider it a fairly low priority.

-jJ

Received on Wednesday, 2 May 2007 23:33:53 UTC