Polyfill (programming)

This is an old revision of this page, as edited by Chris Chittleborough (talk | contribs) at 14:03, 14 December 2012 (We already had a perfect cite for the name ... duh.). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

In web development, a polyfill (or polyfiller) is downloadable code which provides facilities that are not built-in to a web browser. For example, many features of HTML5 are not supported by versions of Internet Explorer older than version 8 or 9, but can be used by web pages if those pages install a polyfill.[1][2] Web shims[3] like HTML5 Shiv are a related concept.

Polyfills can also be used to add entirely new functionality to browsers. For instance, BrowserID relies on a Javascript API which (as of mid 2012) is not supported in any browser and must be provided via a polyfill.[4]

The term "polyfiller" is inspired by Polyfilla, the name of a brand of spackling paste sold in the UK.[1]

References

  1. ^ a b Sharp, Remy. "What is a polyfill?". Retrieved 13 January 2012.
  2. ^ HTML5 Polyfill list by feature
  3. ^ Webshim
  4. ^ "navigator.id". Mozilla Developer Network. 30 Jun 2012.