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

Re: XHTML 1.1 Validateor fails my FORM

From: Frank Ellermann <nobody@xyzzy.claranet.de>
Date: Mon, 21 Jul 2008 11:44:01 +0200
To: www-validator@w3.org
Message-ID: <g61loa$o1d$1@ger.gmane.org>

Chris Wolcott wrote:
 
> <form action="https://www.xxxxxx.com/cgi-bin/webscr" method="post">
>   <input type="hidden" name="cmd" value="_xclick" />
[...]
 
> I get this error for every input element:
> document type does not allow element "input" here; missing one of
> "ins", "del", "h1", "h2", "h3", "h4", "h5", "h6", "p", "div",
> "address", "fieldset" start-tag.

Looking in the 1.0 strict DTD, because I assume that it's similar:

That is as it is, %form.content is a %block or %misc.  Apparently
you need a "div" or "p" or "fieldset"; something that can contain
"input" elements.  Directly an XHTML 1.0 strict "form" can't.

> What is wrong with this?  

See above.

> How do I get the page to validate?

Maybe use XHTML 1.0 transitional like <pov> everbody else </pov>.
Or add the missing <div> .. </div> as container for your <input>
elements. 

 Frank
Received on Monday, 21 July 2008 09:44:23 GMT

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