[whatwg] Web Forms 2.0 - repetition model control

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