I cannot create Number component that allows Decimal input that works in some browsers.
I've created a Number component, so I can enter data like "5.6".
Then Webform 7.x-3.18 generates HTML that looks like
Most browsers (IE, Firefox) ignore the type attribute if they don't handle it and treat it as a text field.
The latest versions of Chrome and Opera can handle type=number, but assume the field is an integer unless the Step attribute is also specified as "any".
will take any decimal input on most browsers.
Something like will work, but produces unexpected results for Chrome and Opera.
Webform will not generate step="any" for a Number component although you can specify the Step, and I'm not sure that those two browsers presently do the right thing.
I'm wondering if Webform should allow you to more explicitly request a decimal field and then add the 'any' attribute.
A workaround for me of course would be to rely upon a Textfield or to only allow integer input.
Here's the HTML5 spec.
I've attached sample HTML with notes about my browser observations.