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>

Received on Monday, 21 July 2008 09:44:23 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:56 UTC