W3C home > Mailing lists > Public > www-validator@w3.org > September 2007

Re: [VE][73] end tag for "FORM" which is not finished.

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Sun, 2 Sep 2007 00:21:35 +0300 (EEST)
To: Brenton Strine <Brenton.Strine@citrix.com>
cc: www-validator@w3.org
Message-ID: <Pine.SOC.4.64.0709020017140.4561@mustatilhi.cs.tut.fi>

On Fri, 31 Aug 2007, Brenton Strine wrote:

> The validator doesn't like my empty form:

It has no likes or dislikes. It only answers the question you asked it to 
solve, even though you might not have realized you asked it: does this 
document conform to the Document Type Definition that it declares to 
conform to?

> <form method="post" name="name" action="action"></form>

Apparently you are using a Document Type Definition that does not allow 
such an element.

> What is the valid way to do it?

Using a Transitional DTD. The Strict DTDs require that a form element 
contain at least one block element or script element. You can make the 
markup valid by putting <div></div> inside the form, but then it's not an 
empty form any more, even though there's no _visible_ content.

Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/
Received on Saturday, 1 September 2007 21:21:48 UTC

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