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

Ian Hickson ian at hixie.ch
Sun Oct 11 18:09:58 PDT 2009


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


More information about the whatwg mailing list