Click here to get back home

Default type of

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Default type of Christopher Benson-Manica 07-01-2005
Get Chitika Premium
Posted by Christopher Benson-Manica on July 1, 2005, 9:01 pm
Please log in for more thread options


According to http://www.w3schools.com/tags/tag_button.asp, the type
attribute of the <button> tag is optional. Is the UA at liberty to
choose any type it wishes if the attribute is omitted? Does the
presence or lack of a DTD impact the answer?

--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.

Posted by David Dorward on July 1, 2005, 10:30 pm
Please log in for more thread options


Christopher Benson-Manica wrote:

> According to http://www.w3schools.com/tags/tag_button.asp, the type
> attribute of the <button> tag is optional.

W3Schools is rather error prone, in this case they are simply missing some
information. Try the spec instead:

type = submit|button|reset [CI]
This attribute declares the type of the button. Possible values:

* submit: Creates a submit button. This is the default value.
* reset: Creates a reset button.
* button: Creates a push button.

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

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is

Posted by Michael Winter on July 1, 2005, 10:13 pm
Please log in for more thread options


On 01/07/2005 22:30, David Dorward wrote:

> Christopher Benson-Manica wrote:
>
>> According to [W3Schools], the type attribute of the <button> tag is
>> optional.

[From the specification:]

> * submit: Creates a submit button. This is the default value.

It's worth pointing out two things, both related to IE:

1. IE incorrectly assumes 'button' for the default value.
2. IE gets the whole mechanics of the BUTTON element wrong
when used for form submission.

[snip]

Mike

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.

Similar ThreadsPosted
automatically put a default filename in value October 18, 2005, 1:56 am
& in one action? April 4, 2005, 6:34 am
Having no default button in a form August 24, 2005, 3:41 am
form/action default August 21, 2006, 9:15 am
To have Firefox browser as NOT default January 4, 2007, 8:59 am
Default dir for file urls. February 27, 2007, 8:24 pm
What is the default height of a cell if unspecified? August 10, 2004, 11:59 pm
Persistent, default and alternate styles December 21, 2005, 11:40 am
Default top and bottom margin disappear in IE7: why November 9, 2007, 11:44 pm
How to set Firefox default language to test internationalization? May 31, 2008, 11:45 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap