Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
36
rated 0 times [  38] [ 2]  / answers: 1 / hits: 166999  / 13 Years ago, wed, august 17, 2011, 12:00:00

What is the meaning of polyfills in HTML5? I saw this word in many sites about HTML5, e.g. HTML5-Cross-Browser-Polyfills.




So here we're collecting all the shims, fallbacks, and polyfills
in order to implant HTML5 functionality in browsers that don't
natively support them.




I actually don't understood what is the meaning of polyfills.



Is it a new HTML5 technique or a JavaScript library? I never heard this word before HTML5.



And what is the difference between shims, fallbacks, and polyfills?


More From » html

 Answers
80

A polyfill is a browser fallback, made in JavaScript, that allows functionality you expect to work in modern browsers to work in older browsers, e.g., to support canvas (an HTML5 feature) in older browsers.



It's sort of an HTML5 technique, since it is used in conjunction with HTML5, but it's not part of HTML5, and you can have polyfills without having HTML5 (for example, to support CSS3 techniques you want).



Here's a good post:



http://remysharp.com/2010/10/08/what-is-a-polyfill/



Here's a comprehensive list of Polyfills and Shims:



https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-browser-Polyfills


[#90578] Monday, August 15, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
breap

Total Points: 606
Total Questions: 96
Total Answers: 108

Location: Djibouti
Member since Sun, Feb 27, 2022
2 Years ago
breap questions
Thu, Jun 24, 21, 00:00, 3 Years ago
Wed, Mar 18, 20, 00:00, 4 Years ago
Mon, Oct 7, 19, 00:00, 5 Years ago
;