[whatwg] Keywords for the pattern attribute [was: RFC: <input type="username">]

Schalk Neethling schalk at ossreleasefeed.com
Thu May 6 13:47:39 PDT 2010


If the pattern email will map to a default of evaluating the input as if you used type=email you may have a problem but, if you have the specific need mentioned, change your pattern?

Schalk Neethling

-----Original Message-----
From: whatwg-bounces at lists.whatwg.org [mailto:whatwg-bounces at lists.whatwg.org] On Behalf Of Eitan Adler
Sent: Thursday, May 06, 2010 7:02 PM
To: Markus Ernst
Cc: whatwg at lists.whatwg.org
Subject: Re: [whatwg] Keywords for the pattern attribute [was: RFC: <input type="username">]

> <input type="text" pattern="email">
> <input type="username" pattern="email">

What if for some strange reason I wanted to only allow the text e-m-a-i-l ? There would have to be some way to differentiate between a keyword and a normal pattern.



More information about the whatwg mailing list