- From: <bugzilla@jessica.w3.org>
- Date: Sat, 18 Jun 2011 17:21:01 +0000
- To: public-html-bugzilla@w3.org
http://www.w3.org/Bugs/Public/show_bug.cgi?id=12988 Axel <axelwinter@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WORKSFORME | --- Comment #2 from Axel <axelwinter@gmail.com> 2011-06-18 17:16:40 UTC --- (In reply to comment #1) > Use <input type=text pattern="\d{5}(-\d{4})?">. > > I'll close this bug as WORKSFORME - please reopen if you feel your problem > isn't addressed. The pattern attribute only works for type=text, but not for number. I a lot of countries the zip-code is just a number. Example in Switzerland it is a 4 digit number. The number must be in between 1000 and 9659. I think here it would be appropriate to use number, especially because on mobile devices the keyboard would change to a number-pad. Type=tel would work too, but is semantically incorrect. With type=text there is no chance to check validity by browser and as far as I know, you cant address this with regex. I know there are countries that have also letters in the zip-code, so numbers would not work. That's why I think a type=zip is needed. -- Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
Received on Saturday, 18 June 2011 17:21:03 UTC