W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2005

[whatwg] Web Forms 2.0 - repetition model control

From: Ian Hickson <ian@hixie.ch>
Date: Wed, 26 Oct 2005 18:06:45 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0510261804450.6813@dhalsim.dreamhost.com>
On Sun, 16 Oct 2005, Lachlan Hunt wrote:
> 
> Actually, after a little more thought, the action attribute you 
> suggested may actually be better for graceful degradation.  but instead 
> of using type="template" or type="button", use type="submit" for either 
> <input> or <button>:
> 
> <input type="submit" action="add" template="foo" value="Add Row"> OR
> <button type="submit" action="add" template="foo">Add Row</button>
> 
> That solves the problem with IE, where <button> defaults to push button 
> instead of submit.  It could be defined that buttons with a valid and 
> known action attribute don't submit the form, but rather behave 
> according to the action attribute.

(It would have to be something other than action="", since we're using 
that already.)

This is one idea, and I have considered it in the past. But it just seems 
so semantically wrong that I can't bring myself to put it in the spec.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Wednesday, 26 October 2005 11:06:45 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:43 UTC