W3C home > Mailing lists > Public > www-validator@w3.org > July 2011

Re: [VE][64] Document type does not allow body here

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Tue, 12 Jul 2011 09:06:36 +0300
Message-ID: <4E1BE46C.5060809@cs.tut.fi>
To: www-validator@w3.org, borcello@att.net
2011-07-12 8:50, Matthew Borcello wrote:

> Line 17 Column 86
> Why doesn't it allow body here?
[...]
> Validating http://www.twinscape.com/
> Error [64]: "document type does not allow element X here"

It's usually best to work out the error messages in their order, as a 
syntax error easily causes subsequent constructs to be parsed in a 
manner you didn't mean.

In this case, the first error message relates to line 12, and it is 
somewhat obscure, and in such cases it often helps to look at the markup 
_before_ that line. And you'll notice that line 11 contains an attribute 
value denotation that starts with a quotation mark but there is no 
closing quotation mark. This implies that the validator proceeds to the 
next quotation mark and assumes _it_ to terminate the quoted string. And 
then confusion arises, as that quotation mark was meant to be opening.

-- 
Yucca, http://www.cs.tut.fi/~jkorpela/
Received on Tuesday, 12 July 2011 06:07:18 GMT

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