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

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@lists.whatwg.org [mailto:whatwg-bounces@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.

Received on Thursday, 6 May 2010 13:47:39 UTC