On Jun 24, 7:13 pm, KaiserGimmel <[email protected]> wrote:
> Hello,
>
> im trying this for a couple of days now. How can i force safari to
> show only numerical keys if you tap an input field. I thought this
> should be covered by 
> HTML5http://dev.w3.org/html5/spec/Overview.html#the-input-element

Hmm, that is an editor's draft, so right on the bleeding edge of
bleeding edges. :-o


> with the state "number" like this:
>
> <input type="number" name="phonenumber"/>

That would not be a good idea, as the HTML 5 algorithm for generating
a value for such a field fromt he user input will strip leading zeros
and error if there are say spaces between digits as might be expected
in a formatted phone number (e.g. 075 123 456).

<URL: 
http://www.w3.org/TR/html5/infrastructure.html#rules-for-parsing-floating-point-number-values
>

Phone numbers are not necessarily valid integers or floating point
numbers.  Your dilema is that you are trying to use an attribute
designed to help the UA interpret the value for a purpose it wasn't
designed for, i.e. to tell the UA what UI widget to display.

The use of such HTML 5 features is sure to break any browser that
doesn't understand HTML 5 and treats the page as HTML 4 (where
in...@type="number" is invalid).  Lastly, the markup is invalid HTML
5, it seems to be XHTML.


--
Rob

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/iphonewebdev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to