Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Weird iOS 5 Safari Feature

Myself and a friend have the iPhone 3GS with the new iOS 5 installed. When we go to fedex.com, we get the mobile site (of course), but when we enter in the tracking number, the number is automatically formatted with commas every third digit (i.e., 123456789 becomes 123,456,789). Even if you go back and remove the commas, and then hit submit, the commas will still appear after hitting the submit button. He followed a fedex link from an email, and he had a number pad entry, while I went to fedex.com directly, and i had a keyboard entry input, but it was automatically toggled to the keyboard that has numbers at the top. So, our inputs were different, but we had the same problem. We also tried copy-pasting the number into the field (without commas). Still, it would insert commas. We turned off auto-complete in the keyboard settings, still didn't work. I don't think it's fedex javascript doing it, because I tried submitting with javascript turned off. I think fedex in their html identified this as a numbers-only field. iOS 5 safari is picking up on this, and thus is why it defaults the entry input to a number pad or keyboard with the numbers page selected automatically. I think that iOS 5 safari, because it knows it's a numbers-only field, is formatting the number to have commas. Any ideas?

iPhone 3GS, iOS 5

Posted on Oct 18, 2011 11:00 AM

Reply
23 replies

Mar 5, 2012 11:05 AM in response to Stan Stare

Yes - I can see where it is an improvement. In my usage of the 'number' param though, it doesn't help me. I was bastardizing the type='number' attribute to facilitate a field that was collecting some dates as input. with iOS 4x it worked just great - bringing up the full numeric kbd with the slashes - saving the user from having to toggle the kbd before every input. Now I don't have the ability to trigger that kbd. Unless you know something I don't know.

Mar 5, 2012 11:36 AM in response to ginerjm

If you are using type="number", it works fine on iOS 4.x but to achieve a similar effect in iOS 4 and 5 we use type="tel".


This will give the number keyboard without inserting commas. There is no specific formatting implemented for telephone inputs.


This is both a HTML 5 attribute and a safari attribute, so it should work regardless of the HTML doctype.

Weird iOS 5 Safari Feature

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.