W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2004

[whatwg] Analogous DOM methods for the step attribute would be useful to have

From: Brian Wilson <brian@opera.com>
Date: Thu, 26 Aug 2004 16:15:58 +0200
Message-ID: <opsdce8woh87i379@toshistation2.oslo.opera.com>

There would be times when an author might want to provide a mega-stepping  
button for a field (for instance, when step is set closer to seconds,  
being able to change by day or year might be difficult to do by default on  
an input type=date field.) Plus, there have been a few tests that I've  
made recently where I wanted to force a step-up or step-down from the  
current value through script. Admittedly, that was a testing case so other  
use cases would be interesting to hear as well.

I'd propose two additional methods wherever the STEP attribute is legal:
Where n is an integer multiplier of the element's .step value - default  
value of n would be 1
All of the step attribute rules should apply to the resulting value (such  
as a resulting value exceeding the max, etc.)


Brian Wilson
Opera Core QA
Received on Thursday, 26 August 2004 07:15:58 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:36 UTC