[WSG] minimal use of modernizr?

2012-05-12 Thread coder
I have a very simple html5 contact form which I'd like to keep that way. However, the 'pattern' attribute isn't recognised by IE and I feel that it surely must be possible to just use a bit of modernizr to make it work. Example is: label for=email accesskey=EEmail/label input

Re: [WSG] minimal use of modernizr?

2012-05-12 Thread Patrick H. Lauke
On 12/05/2012 09:54, coder wrote: I have a very simple html5 contact form which I'd like to keep that way. However, the 'pattern' attribute isn't recognised by IE and I feel that it surely must be possible to just use a bit of modernizr to make it work. Example is: label for=email

Re: [WSG] minimal use of modernizr?

2012-05-12 Thread Benjamin Hawkes-Lewis
On Sat, May 12, 2012 at 9:54 AM, coder co...@gwelanmor-internet.co.uk wrote:               input name=email id=email placeholder=Enter your Email Address pattern=^[A-Za-z0-9](([_\.\-]?[a-zA-Z0-9]+)*)@([A-Za-z0-9]+)(([\.\-]?[a-zA-Z0-9]+)*)\.([A-Za-z]{2,})$ required type=email Note that's not

Re: [WSG] minimal use of modernizr?

2012-05-12 Thread Patrick H. Lauke
...and just to test if a browser has support for things like the email type for inputs, the bare-bones test would be to check programmatically if the type of that particular input is reported as email. Older browsers default any type attribute they don't know back to text. So something like

Re: [WSG] minimal use of modernizr?

2012-05-12 Thread Patrick H. Lauke
On 12/05/2012 10:31, Benjamin Hawkes-Lewis wrote: On Sat, May 12, 2012 at 9:54 AM, coderco...@gwelanmor-internet.co.uk wrote: input name=email id=email placeholder=Enter your Email Address