The numeric keypad with decimal input was available only for native applications in iOS 4.1 (in particular, for the UIKeyboardTypeDecimalPad keyboard UITextInputTraits protocol UITextInputTraits ). Previously, you had to hack to bypass the missing decimal point limit using UIKeyboardTypeNumberPad as a starting point.
Unfortunately, this function does not yet seem to be leaking to MobileSafari (or UIWebView) and Apple, only the documentation for the function is here , unfortunately, only those documents that you have already found.
There is no mention in the Apple documentation that you can specify <input type="number"> (the new attribute value in HTML5), which will launch the user on the keyboard of numbers and punctuation marks, which is usually accessed by pressing the ".? 123 "button at the bottom left of the default text keyboard.
I will probably take this approach now and hope that support for UIKeyboardTypeDecimalPad will be added in iOS 5.
(By the way, input elements with a type attribute set to number must support floating point numbers , as in the HTML5 specification . I suspect that is why Apple presents a full keyboard in this case - floating point numbers may legally contain characters minus and plus and lowercase or uppercase 'E, none of which are supported with UIKeyboardTypeDecimalPad )
Rich pollock
source share