That does not prevent the entering of alphabetic characters, does not add commas, and does not format to a precise number of decimals . Maybe you'd argue that these things shouldn't be done - but I'd think the existence of multiple libraries that do these things demonstrates that it's a valid need.
On Mon, Feb 2, 2015 at 4:36 AM, Anne van Kesteren <ann...@annevk.nl> wrote: > On Sat, Jan 31, 2015 at 7:40 PM, Chris Bateman <chrisb...@gmail.com> > wrote: > > The -webkit-appreance CSS is definitely another issue, so here's an > example > > with just JS behavior: > > > > <input is="number-input" decimals="2"> > > The way to do this, FWIW, is <input type=number step=0.01> and solve > the styling issue. > > > -- > https://annevankesteren.nl/ >