W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2010

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

From: Schalk Neethling <schalk@ossreleasefeed.com>
Date: Thu, 6 May 2010 22:47:39 +0200
Message-ID: <00dd01caed5d$600e1ec0$202a5c40$@com>
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

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:23 UTC