|
Posted by David Dorward on 11/06/07 15:15
Bone Ur wrote:
> > <title>foo</title>
> > <p>Hello, world
> > <div>Goodbye, world</div>
> >
> > Without knowing HTML (via a DTD or otherwise), the parser has no way
> > to know that it needs to insert an HTML, HEAD and BODY elements, or
> > that the P element should end before the DIV and not after it.
>
> Excepting the situation with the <p> element, don't xhtml parsers have
> the same problem?
No, because the start and end tags for those elements aren't optional.
Since they don't appear in the document, they don't exist.
--
David Dorward
http://dorward.me.uk/
http://blog.dorward.me.uk/
[Back to original message]
|