哪种 HTML5 形式的 javascript polyfill 具有最广泛的功能和浏览器范围?
HTML5 中的新表单属性和标签非常棒。不幸的是,Chrome 和 Firefox 中对这些的支持有限,IE9 及更低版本中基本上不支持这些。
我研究过使用 Modernizr 和 HTML5 polyfills 在缺乏本机支持的浏览器中填充此功能。然而,似乎有大量的 HTML5 表单功能的填充,例如 webshims lib、webforms2 和 h5f(例如,参见 https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-Browser-Polyfills),我不确定我应该花时间学习哪一个或哪些。
在 HTML5 功能和浏览器覆盖范围方面,哪一个 HTML5 表单 Polyfill 能够为我提供最广泛的覆盖范围?
The new forms attributes and tags in HTML5 are great. Unfortunately, there is only limited support for these in Chrome and Firefox, and essentially no support of these in IE9 and below.
I have investigated using Modernizr and HTML5 polyfills to polyfill this functionality in browsers lacking native support. However, there seems to be a large number of polyfills for HTML5 forms functionality, such as webshims lib, webforms2 and h5f (see for example the listing at https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-Browser-Polyfills) and I am not sure which one or ones I should invest the time in learning.
Which one of these HTML5 forms polyfills would give me the broadest coverage in terms of HTML5 features and browser coverage?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我使用过 Webshims Lib 并喜欢它,因为:
顺便说一句,Webshims 创建者在 stackoverflow 上非常令人信服地回答了另一个问题: html5带有填充的表单 - 值得吗?
I have used Webshims Lib and like it because:
By the way, the Webshims creator answered another question on stackoverflow quite convincingly: html5 forms with polyfills - is it worth it?