From d1765b1a1fd32525aee3e46b813215e3071fddde Mon Sep 17 00:00:00 2001 From: Mark Trapp Date: Tue, 24 May 2011 10:41:02 -0700 Subject: [PATCH] Issue #1077878: Add HTML5shim to core --- modules/html5/html5.info | 5 +++++ modules/html5/html5.js | 3 +++ modules/html5/html5.module | 37 +++++++++++++++++++++++++++++++++++++ profiles/standard/standard.info | 1 + 4 files changed, 46 insertions(+), 0 deletions(-) create mode 100644 modules/html5/html5.info create mode 100644 modules/html5/html5.js create mode 100644 modules/html5/html5.module diff --git a/modules/html5/html5.info b/modules/html5/html5.info new file mode 100644 index 0000000..92742f4 --- /dev/null +++ b/modules/html5/html5.info @@ -0,0 +1,5 @@ +name = HTML5 legacy support +description = Enables HTML5 support in legacy browsers. +package = Core +version = VERSION +core = 8.x \ No newline at end of file diff --git a/modules/html5/html5.js b/modules/html5/html5.js new file mode 100644 index 0000000..6dd03a4 --- /dev/null +++ b/modules/html5/html5.js @@ -0,0 +1,3 @@ +// html5shiv MIT @rem remysharp.com/html5-enabling-script +// iepp v1.6.2 MIT @jon_neal iecss.com/print-protector +/*@cc_on(function(a,b){function r(a){var b=-1;while(++b";return a.childNodes.length!==1}())){a.iepp=a.iepp||{};var c=a.iepp,d=c.html5elements||"abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",e=d.split("|"),f=e.length,g=new RegExp("(^|\\s)("+d+")","gi"),h=new RegExp("<(/*)("+d+")","gi"),i=/^\s*[\{\}]\s*$/,j=new RegExp("(^|[^\\n]*?\\s)("+d+")([^\\n]*)({[\\n\\w\\W]*?})","gi"),k=b.createDocumentFragment(),l=b.documentElement,m=l.firstChild,n=b.createElement("body"),o=b.createElement("style"),p=/print|all/,q;c.getCSS=function(a,b){if(a+""===undefined)return"";var d=-1,e=a.length,f,g=[];while(++d 'HTML5shim', + 'website' => 'http://code.google.com/p/html5shim/', + 'version' => 'trunk', + 'js' => array( + $module_path . '/html5.js' => array( + 'browsers' => array( + 'IE' => 'lt IE 9', + '!IE' => FALSE, + ), + ), + ), + ); + + return $libraries; +} diff --git a/profiles/standard/standard.info b/profiles/standard/standard.info index 56e4308..b8c1e1a 100644 --- a/profiles/standard/standard.info +++ b/profiles/standard/standard.info @@ -8,6 +8,7 @@ dependencies[] = comment dependencies[] = contextual dependencies[] = dashboard dependencies[] = help +dependencies[] = html5 dependencies[] = image dependencies[] = list dependencies[] = menu -- 1.7.4.1