简体   繁体   中英

HTML 5 form browser compatibility issue with Internet Explorer

Why HTML5 forms are not compatible on IE 9?

I don't see forms validated on Internet explorer 9. It works fine on FF, Chrome, and Safari, but not on Internet Explorer.

Internet Explorer is lacking most of the HTML5 features, that's why you are having problems with it.

See this site, to find out, what IE9 is compatible with:

Forms

input type=text             Partial         
input type=search           No      
input type=tel              No      
input type=url              No      
input type=email            No      
input type=datetime         No      
input type=date             No      
input type=month            No      
input type=week             No      
input type=time             No      
input type=datetime-local   No      
input type=number           No      
input type=range            No      
input type=color            No      
input type=checkbox         Yes         
input type=image            Yes         
input type=file             Partial         
textarea                    Partial         
select                      Partial         
fieldset                    Partial         
datalist                    No      
keygen                      No      
output                      No      
progress                    No      
meter                       No 

Fields

Field validation                    No      
Association of controls and forms   No      
Other attributes                    No      
CSS selectors                       No      
Events                              Partial         

Form validation     No 

由于IE9(相对)陈旧,微软对支持新标准持谨慎态度,HTML5正处于前沿。

@Nida Hafeez,

Check out this: http://html5readiness.com

You should not go with HTML5 Validation, I won't recommend.

Always remember that users can overcome client side validation, based on different browser type, version and enable/disable javascript or other client side capabilities.

It seems form validation is not supported until IE 10.0

There should be a polyfill that allows you to achieve what you would like.

many feature of the html 5 form is not supported by many browser check

check A FORM OF MADNESS

and Browser Support for New HTML5 Input Types

在此输入图像描述

source Browser Support for New HTML5 Input Types

也许一个html5启动器将为你工作检查这个http://html5doctor.com/how-to-get-html5-working-in-ie-and-firefox-2/

在使用html5元素之前,您可以使用Modernizr检查浏览器的兼容性。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM