Retro-compatibility and polyfills

Sources for checkin if some functionality work in old browsers:

http://www.caniuse.com, http://www.html5please.com … or you can just use a search engine looking for the term Polyfill.

A polyfill is a piece of JavaScript code you include in your HTML page, that will emulate HTML5 features not yet implemented in browsers. Usually a polyfill starts emulating a feature only when native support is not detected.

html5-summary-details-polyfill

Just add JS script:

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.    <meta charset=“UTF-8”>
  5.    <title>Contact manager</title>
  6.    
  7.       (function(e,t){function r(e){var t=null;… // POLYFILL CODE HERE!
  8.        …
  9.    
  10. </head>
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s