[whatwg] Web Forms 2.0 proposal
Ian Hickson
ian at hixie.ch
Fri Feb 10 12:45:41 PST 2006
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. `._.-(,_..'--(,_..'`-.;.'
More information about the whatwg
mailing list