W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2006

[whatwg] Web Forms 2.0 proposal

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 10 Feb 2006 20:45:41 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0602102045080.28514@dhalsim.dreamhost.com>
On Sat, 11 Feb 2006, Sean Hogan wrote:
>
> I would request a input filter as a regex range eg a-zA-Z0-9 i.e.  if 
> the keyCode is NOT within the range then preventDefault(). I imagine 
> that number, date, datetime, etc will be special implementations that 
> filter keyboard input. Why not extend the facility to text, etc?

This is already possible using the pattern="" attribute:

   http://whatwg.org/specs/web-forms/current-work/#pattern

Thanks,
-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Friday, 10 February 2006 12:45:41 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:26 UTC