Skip to content

Instantly share code, notes, and snippets.

@cimfalab
Last active August 11, 2017 08:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cimfalab/63f1d6520546d0cef8e6acae5a091b5d to your computer and use it in GitHub Desktop.
Save cimfalab/63f1d6520546d0cef8e6acae5a091b5d to your computer and use it in GitHub Desktop.
html5shiv.js
define(['isSVG'], function(isSVG) {
/**
* @optionName html5shiv
* @optionProp html5shiv
*/
// Take the html5 variable out of the html5shiv scope so we can return it.
var html5;
if (!isSVG) {
/**
* @preserve HTML5 Shiv 3.7.3 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
*/
;(function(window, document) {
...
/**
* The `html5` object is exposed so that more elements can be shived and
* existing shiving can be detected on iframes.
* @type Object
* @example
*
* // options can be changed before the script is included
* html5 = { 'elements': 'mark section', 'shivCSS': false, 'shivMethods': false };
*/
var html5 = {
...
};
/*--------------------------------------------------------------------------*/
// expose html5
window.html5 = html5;
// shiv the document
shivDocument(document);
if(typeof module == 'object' && module.exports){
module.exports = html5;
}
}(typeof window !== 'undefined' ? window : this, document));
}
return html5;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment