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

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

From: Ian Hickson <ian@hixie.ch>
Date: Mon, 12 Oct 2009 01:09:58 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0910120107010.25383@hixie.dreamhostps.com>
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

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:18 UTC