RE: [VE][65] Possibly a parser bug?

Hi Jukka,

Thanks for looking - with a bit more investigation it turns out that the
content management system we're using is not outputting the div tags to
the w3c validator, but it is outputting them to my browser so it looks
like a session-based issue (or something!) with the content management
system. 

Your reply gave me the clues, so thank you very much.

I take back my unfounded doubts about the wonderful W3C Validator!

Thanks,
Steve


-----Original Message-----
From: Jukka K. Korpela [mailto:jkorpela@cs.tut.fi] 
Sent: 06 March 2008 13:29
To: Steve Attewell; www-validator@w3.org
Subject: Re: [VE][65] Possibly a parser bug?

Steve Attewell wrote:

> Validating http://www.ffw.com/default.aspx
> Error [65]: "document type does not allow element X here; missing one
> of Y start-tag"

The document contains an <input> element as a child of <form>, which is 
not allowed in the declared doctype XHTML 1.0 Strict.

> I'm getting an error on this code:
>
> <form method="post" action="/Default.aspx" id="aspnetForm">
>         <div>
>         <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE"

Well the URL you specified contains a document that does _not_ contain 
the <div> markup you mention here (and which should fix the problem).

> However the code seems perfectly valid. I note that there is a "/" at
> the start of the form value and that when this is removed, the error
> no longer occurs.

A "/" has no special meaning inside a quoted attribute value. I guess 
there were some syntax errors that caused this behavior, like an 
unquoted attribute value that needs to be quoted, or an unterminated 
quoted string.


Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/ 

Received on Thursday, 6 March 2008 14:04:06 UTC