Polyfill (programming)

This is an old revision of this page, as edited by 213.23.209.100 (talk) at 16:12, 27 January 2014. 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 into 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] Web shims[2] and HTML5 Shivs are related concepts.

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.[3]

The term "polyfiller" is inspired by Polyfilla, the name of a well established brand of wall filler (UK) or spackling paste (US) sold in the UK.[1]

References

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