Re: XHTML 1.1 Validateor fails my FORM

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 UTC