Let IE9 support HTML5 tags below

Source: Internet
Author: User

<!-- [If Lt IE 9]>            <script src= "Js/html5shiv-3.7.0.js" ></script><![ ENDIF] -
Html5shiv-3.7.0.js Originals
/*HTML5 Shiv v3.7.0 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed*/(function(l,f) {functionM () {vara=e.elements;return"string" = =typeofA?a.split (""): A}functionI (a) {varb=n[a[o]];b| | (B={},H++,A[O]=H,N[H]=B);returnbfunctionP (a,b,c) {b| | (B=F);if(g)returnB.createelement (a); c| | (C=i (b)); B=c.cache[a]?c.cache[a].clonenode (): R.test (a)? (C.cache[a]=c.createelem (a)). CloneNode (): C.createelem (a);returnB.canhavechildren&&!s.test (a)? C.frag.appendchild (b): b}functionT (A, B) {if(!b.cache) b.cache={},b.createelem=a.createelement,b.createfrag=a.createdocumentfragment,b.frag=B.createfrag (); A.createelement=function(c) {return!e.shivmethods?b.createelem (c):p (c,a,b)};a.createdocumentfragment=function ("H,f", "return Function () {var n= F.clonenode (),c=n.createelement;h.shivmethods&& ("+m (). Join (). Replace (/[\w\-]+/g,function(a) {B.createelem (a); B.frag.createelement (a);return' C ("' +a+ ') '}) +"); return n} ") (E,b.frag)}functionQ (a) {a| | (A=F);varB=i (a);if(E.SHIVCSS&AMP;&AMP;!J&AMP;&AMP;!B.HASCSS) {varC,d=a;c=d.createelement ("P");d =d.getelementsbytagname ("Head") [0]| | D.documentelement;c.innerhtml= "X<style>article,aside,dialog,figcaption,figure,footer,header,hgroup,main, Nav,section{display:block}mark{background: #FF0; color: #000}template{display:none}</style> "; c=d.insertbefore (c.lastchild,d.firstchild); b.hascss=!! c}g| | T (a, b);returnAvark=l.html5| | {},s=/^<|^ (?: Button|map|select|textarea|object|iframe|option|optgroup) $/i,r=/^ (?: a|b|code|div|fieldset|h1| H2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul) $/i,j,o= "_html5shiv", H=0,n={},g; (function(){Try{varA=f.createelement ("a"); A.innerhtml= "<xyz></xyz>"; j= "hidden"inchAvarbif(! (B=1==a.childnodes.length)) {f.createelement ("a");varC=f.createdocumentfragment (); b= "undefined" = =typeofc.clonenode| | " Undefined "= =typeofc.createdocumentfragment| | " Undefined "= =typeofC.CREATEELEMENT}G=B}Catch(d) {g=j=!0}}) ();vare={elements:k.elements| | " Abbr article aside audio BDI Canvas data DataList Details dialog figcaption Figure Footer header hgroup main mark meter NA V Output Progress Section summary template Time Video ", Version:" 3.7.0 ", shivcss:!1!==k.shivcss,supportsunknownelements : G,shivmethods:!1!==k.shivmethods,type: "Default", Shivdocument:q,createelement:p,createdocumentfragment:function(A, B) {a| | (a=f);if(g)returnA.createdocumentfragment (); for(varb=b| | I (a), C=b.frag.clonenode (), D=0,e=m (), h=e.length;dreturnC}};l.html5=e;q (f)}) ( This, document);

Let IE9 support HTML5 tags below

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.