Left: | ||
Right: |
OLD | NEW |
---|---|
(Empty) | |
1 /** | |
2 * @preserve HTML5 Shiv 3.7.3 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licen sed | |
juliandoucette
2017/07/03 15:37:55
I think it would be a good idea to find a way to i
ire
2017/07/04 09:33:15
Yes that's a good idea. A couple points:
1. These
| |
3 */ | |
4 !function(a,b){function c(a,b){var c=a.createElement("p"),d=a.getElementsByTagNa me("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.in sertBefore(c.lastChild,d.firstChild)}function d(){var a=t.elements;return"string "==typeof a?a.split(" "):a}function e(a,b){var c=t.elements;"string"!=typeof c&& (c=c.join(" ")),"string"!=typeof a&&(a=a.join(" ")),t.elements=c+" "+a,j(b)}func tion f(a){var b=s[a[q]];return b||(b={},r++,a[q]=r,s[r]=b),b}function g(a,c,d){i f(c||(c=b),l)return c.createElement(a);d||(d=f(c));var e;return e=d.cache[a]?d.c ache[a].cloneNode():p.test(a)?(d.cache[a]=d.createElem(a)).cloneNode():d.createE lem(a),!e.canHaveChildren||o.test(a)||e.tagUrn?e:d.frag.appendChild(e)}function h(a,c){if(a||(a=b),l)return a.createDocumentFragment();c=c||f(a);for(var e=c.fra g.cloneNode(),g=0,h=d(),i=h.length;i>g;g++)e.createElement(h[g]);return e}functi on i(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.creat eDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return t.sh ivMethods?g(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","ret urn function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+d().join( ).replace(/[\w\-:]+/g,function(a){return b.createElem(a),b.frag.createElement(a) ,'c("'+a+'")'})+");return n}")(t,b.frag)}function j(a){a||(a=b);var d=f(a);retur n!t.shivCSS||k||d.hasCSS||(d.hasCSS=!!c(a,"article,aside,dialog,figcaption,figur e,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color :#000}template{display:none}")),l||i(a,d),a}var k,l,m="3.7.3",n=a.html5||{},o=/^ <|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,p=/^(?:a|b|co de|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbod y|td|th|tr|ul)$/i,q="_html5shiv",r=0,s={};!function(){try{var a=b.createElement( "a");a.innerHTML="<xyz></xyz>",k="hidden"in a,l=1==a.childNodes.length||function (){b.createElement("a");var a=b.createDocumentFragment();return"undefined"==type of a.cloneNode||"undefined"==typeof a.createDocumentFragment||"undefined"==typeo f a.createElement}()}catch(c){k=!0,l=!0}}();var t={elements:n.elements||"abbr ar ticle aside audio bdi canvas data datalist details dialog figcaption figure foot er header hgroup main mark meter nav output picture progress section summary tem plate time video",version:m,shivCSS:n.shivCSS!==!1,supportsUnknownElements:l,shi vMethods:n.shivMethods!==!1,type:"default",shivDocument:j,createElement:g,create DocumentFragment:h,addElements:e};a.html5=t,j(b),"object"==typeof module&&module .exports&&(module.exports=t)}("undefined"!=typeof window?window:this,document); | |
OLD | NEW |