title: Number input type that takes only integers?
body: <p>I'm using the jQuery Tools <a href="http://flowplayer.org/tools/demos/validator/index.html" rel="noreferrer">Validator</a> which implements HTML5 validations through jQuery.</p>
  <p>It's been working great so far except for one thing. In the HTML5 specification, the <em>input</em> type <code>&quot;number&quot;</code> can have both integers and floating-point numbers.</p>
  <p>This seems incredibly short-sighted since it will only be a useful validator when your database fields are signed floating-point numbers (for unsigned ints you'll have to fall back to <code>pattern</code> validation and thus lose extra features like the up and down arrows for browsers that support it).</p>
  <p>Is there another <em>input</em> type or perhaps an <em>attribute</em> that would <strong>restrict</strong> the input to just unsigned <strong>integers</strong>?</p>
  <p>I couldn't find any.</p>
  <hr />
  <p>Setting the step to 1 is not the answer since it doesn't restrict the input. You can still type a negative floating-point number into the textbox.</p>
  <p>Also, I am aware of pattern validation (I mentioned it in my original post), but that was not part of the question.</p>
  <p>I wanted to know if HTML5 allowed restricting an input of type &quot;number&quot; to positive integer values. To this question the answer, it seems, would be &quot;no, it does not&quot;.</p>
  <p>I didn't want to use pattern validation because this causes some drawbacks when using <em>jQuery</em> Tools validation, but it now seems that the specification doesn't allow for a cleaner way to do this.</p>