[Bug 12988] I'm a bit in trouble on what type to apply for zip- postcodes. I would use type=number, but then I cant use the maxlenght attribute. While using type=text there are no max min attributes. No matter what type I choose, none of them works for zip- postcodes

http://www.w3.org/Bugs/Public/show_bug.cgi?id=12988

--- Comment #3 from Tab Atkins Jr. <jackalmage@gmail.com> 2011-06-18 17:24:07 UTC ---
I'm confused.  Did you read my response?  In it, I described exactly how to
make an input that only accepts valid US zipcodes.  Is my suggestion inadequate
in some way?

You also bring up the issue of international postal codes.  This is a
substantially different problem, because there is *no* pattern to them.  If
you're accepting international addresses, the postal code field needs to be a
plain <input type=text>, with no additional constraints.  I type=zip wouldn't
be able to help you at all here.

-- 
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:24:09 UTC