...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

<input type="email" id="email" ...>

if (document.getElementById('email').type == 'text') {
  // doesn't support type=email ... load JS-based validation script
}

P
--
Patrick H. Lauke
______________________________________________________________
re·dux (adj.): brought back; returned. used postpositively
[latin : re-, re- + dux, leader; see duke.]

www.splintered.co.uk | www.photographia.co.uk
http://redux.deviantart.com | http://flickr.com/photos/redux/
______________________________________________________________
twitter: @patrick_h_lauke | skype: patrick_h_lauke
______________________________________________________________


*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
*******************************************************************

Reply via email to