W3C home > Mailing lists > Public > www-validator@w3.org > January 2003

Re: Button Type validation

From: Liam Quinn <liam@htmlhelp.com>
Date: Wed, 22 Jan 2003 12:36:10 -0500 (EST)
To: Charles Hildebrant <childebrant@bookeseminars.com>
cc: www-validator@w3.org
Message-ID: <Pine.LNX.4.44.0301221235320.1284-100000@localhost.localdomain>

On Wed, 22 Jan 2003, Charles Hildebrant wrote:

> One thing that should be checked during validation is the presents of a
> type attribute in the button tag.  In Mozilla when button is a child of
> a form, its default type is submit.  This can lead to unexpected results
> when you simply want the button to trigger a bit of JavaScript code.
> Script and Style tags require type attributes and I believe button
> should require type as well.

HTML 4 defines "submit" as the default type.  See

http://www.w3.org/TR/html4/interact/forms.html#edef-BUTTON

-- 
Liam Quinn
Received on Wednesday, 22 January 2003 12:36:11 GMT

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