scottjehl / Device-Bugs

Just a collection of quirks and issues that occur on browser platforms (particularly those unlikely to update)
864 stars 19 forks source link

Safari 6 (Mac OS X and iOS) truncate leading zeros on input type="number" #72

Open zachleat opened 8 years ago

zachleat commented 8 years ago

Type the valid US Zip Code "02111" into an <input type="number"> field and it will truncate the leading zero.

Workaround: use type="text".

Programmerman1 commented 8 years ago

This is the same as #71: Safari 6 keeps the double version of the input, not the original string (which is not to say it's a duplicate, it's a different symptom)