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


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

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