[whatwg] default values stepDown() and stepUp() methods

On Mon, 5 Oct 2009, Scott Gonz?lez wrote:
>
> The stepDown() and stepUp() methods both take a single parameter to 
> define how many steps should be taken. There is currently no default 
> value for this parameter which means calling element.stepUp() takes zero 
> steps, which essentially means that it performs no action at all. I 
> think the parameter should default to 1 as that will probably be a very 
> common use. Everyone I have talked to agrees that defaulting to zero 
> steps is not the behavior they expect.

I've made the argument to these methods optional, defaulting to 1.

Cheers,
-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Sunday, 11 October 2009 18:09:58 UTC