W3C home > Mailing lists > Public > www-validator@w3.org > November 2005

Re: [VE][65] Error Message Feedback

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Tue, 15 Nov 2005 18:03:07 +1100
Message-ID: <4379882B.4030104@lachy.id.au>
To: Michał Szyndel <szyndel@gmail.com>
CC: www-validator@w3.org

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
Received on Tuesday, 15 November 2005 07:03:20 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:58:54 UTC