Polyfill (programming): Difference between revisions

Content deleted Content added
No edit summary
Copy edit / partial rewrite. Add context to lede sentence. Add an EL. Mention BrowserID as an example of an new-API polyfiller.
Line 1:
AIn [[web development]], a '''''polyfill''''' (or '''''polyfiller''''') is downloadable code designedwhich toprovides provide technologyfacilities that isare not nativebuilt-in to a web browser. For example, earliermany versionsfeatures of [[Internet ExplorerHTML5]] (up to version 8) doare not supportsupported allby the featuresversions of [[HTML5Internet Explorer]] whicholder maythan necessitateversion the8, usebut ofcan polyfillsbe toused displayby featuresweb ofpages HTML5if whichthose arepages notinstall supporteda by the web browserpolyfill.<ref>{{cite web|last=Sharp|first=Remy|title=What is a polyfill?|url=http://remysharp.com/2010/10/08/what-is-a-polyfill/|accessdate=13 January 2012}}</ref>
 
Polyfills can also be used to add entirely new functionality to browsers. For instance, [[BrowserID]] relies on a [[Javascript]] [[Application Programming Interface|API]] which (as of mid 2012) is not supported in any browser and must be provided via a polyfill.<ref>{{cite web
|title=navigator.id
|url=https://developer.mozilla.org/en/DOM/navigator.id
|publisher=Mozilla Developer Network |date=30 Jun 2012}}</ref>
 
==References==
Line 5 ⟶ 10:
 
== External links ==
*[https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-browser-Polyfills A list of polyfills] providing HTML5 facilities, from the [[Modernizr]] project
*[http://html5please.us/ HTML5 Polyfill List By Feature]
 
[[Category:Web browsers]]