Re: [VE][65] Error Message Feedback

Michał Szyndel wrote:
> Validating http://naramiennik.szczecindabie.zhp.pl/sklad.html
> Error [65]: "document type does not allow element X here; missing one of Y start-tag"
> 
> There is another case for this error. If you write a code like that:
> <p><div>sometext</div> another text</p>

For XHTML, that markup will return this error, but for HTML4 you will 
find that it will return these errors instead, due to the different 
parsing rules in SGML and XML:
   [63] character data is not allowed here
   [79] end tag for element X which is not open

That is because the DIV will imply the end of the P element.  Also note 
that error [63] may not be issued for this same markup in some cases, 
but [79] always will be for HTML.

-- 
Lachlan Hunt
http://lachy.id.au/

Received on Tuesday, 15 November 2005 07:03:20 UTC