From 75a99a343a9fde94de0467e81401d970bd963968 Mon Sep 17 00:00:00 2001 From: Astro Date: Fri, 26 Nov 2010 17:26:13 +0100 Subject: [PATCH] js crap for IE to understand html5 --- content/static/script/ie-html5.js | 6 ++++++ xsl/header.xsl | 3 +++ 2 files changed, 9 insertions(+) create mode 100644 content/static/script/ie-html5.js diff --git a/content/static/script/ie-html5.js b/content/static/script/ie-html5.js new file mode 100644 index 000000000..3587bf734 --- /dev/null +++ b/content/static/script/ie-html5.js @@ -0,0 +1,6 @@ +// html5shiv MIT @rem remysharp.com/html5-enabling-script +// iepp v1.6.2 MIT @jon_neal iecss.com/print-protector +/*@cc_on(function(m,c){var z="abbr|article|aside|audio|canvas|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video";function n(d){for(var a=-1;++ai";if(g.childNodes.length!==1){var i=z.split("|"),o=i.length,s=RegExp("(^|\\s)("+z+")", +"gi"),t=RegExp("<(/*)("+z+")","gi"),u=RegExp("(^|[^\\n]*?\\s)("+z+")([^\\n]*)({[\\n\\w\\W]*?})","gi"),r=c.createDocumentFragment(),k=c.documentElement;g=k.firstChild;var h=c.createElement("body"),l=c.createElement("style"),f;n(c);n(r);g.insertBefore(l, +g.firstChild);l.media="print";m.attachEvent("onbeforeprint",function(){var d=-1,a=p(c.styleSheets,"all"),e=[],b;for(f=f||c.body;(b=u.exec(a))!=null;)e.push((b[1]+b[2]+b[3]).replace(s,"$1.iepp_$2")+b[4]);for(l.styleSheet.cssText=e.join("\n");++d + [if lt IE 9]> + <script src="script/ie-html5.js" type="text/javascript"></script> + <![endif]