To fix the error, change the try excerpt above:
try { input.value = ''; input.type = 'email'; html5InputSupport = input.type == 'email'; } catch(e){}
Or in the compressed version, find "email" and change this:
try{p.type="email",h="email"==p.type}catch(c){}
To:
try{p.value="",p.type="email",h="email"==p.type}catch(c){}
source share