[whatwg] Web Forms 2.0 proposal

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:


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