[whatwg] Web Forms 2.0 - repetition model control

Ian Hickson ian at hixie.ch
Wed Oct 26 11:06:45 PDT 2005


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.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list