Re: Button Type validation

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 UTC