This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 17959 - (I apologize in advance if this shows up multiple times, submit kept giving an error) The "step" attribute of the Input tag, type="numeric": The default step for this input type is 1, thereby forcing all input to be integer only if you leave off the step
Summary: (I apologize in advance if this shows up multiple times, submit kept giving a...
Status: RESOLVED WONTFIX
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-18 07:23 UTC by contributor
Modified: 2012-08-25 16:25 UTC (History)
2 users (show)

See Also:


Attachments

Description contributor 2012-07-18 07:23:45 UTC
This was was cloned from bug 17573 as part of operation convergence.
Originally filed: 2012-06-22 05:11:00 +0000

================================================================================
 #0   contributor@whatwg.org                          2012-06-22 05:11:16 +0000 
--------------------------------------------------------------------------------
Specification: http://dev.w3.org/html5/spec/
Multipage: http://www.whatwg.org/C#top
Complete: http://www.whatwg.org/c#top

Comment:
(I apologize in advance if this shows up multiple times, submit kept giving an
error)
The "step" attribute of the Input tag, type="numeric":

The default step for this input type is 1, thereby forcing all input to be
integer only if you leave off the step attribute. I really believe the default
step should be "any" so that
<input type="numeric" name="arg1" />
would accept any number entered like -5, 3.2, 100.23, or -0.0103293 instead of
the current implementation that forces such inputs to accept integers only. I,
as the developer, should take extra actions to force constraints upon the
input as I need them, but should not expect any constraints if I leave them
all out.

Posted from: 71.62.71.235
User agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.56 Safari/536.5
================================================================================
Comment 1 Ian 'Hixie' Hickson 2012-08-25 16:25:25 UTC
Turns out most forms that ask for numbers expect integers, so for convenience we make it the default.