Browse Source

Updated modernizr to 2.7.1

pull/17/merge
Simon Eisenmann 11 years ago
parent
commit
064c5fe6e6
  1. 29
      static/js/libs/modernizr.js

29
static/js/libs/modernizr.js

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*!
* Modernizr v2.6.2
* Modernizr v2.7.1
* www.modernizr.com
*
* Copyright (c) Faruk Ates, Paul Irish, Alex Sexton
@ -24,7 +24,7 @@ @@ -24,7 +24,7 @@
window.Modernizr = (function( window, document, undefined ) {
var version = '2.6.2',
var version = '2.7.1',
Modernizr = {},
@ -1004,9 +1004,14 @@ window.Modernizr = (function( window, document, undefined ) { @@ -1004,9 +1004,14 @@ window.Modernizr = (function( window, document, undefined ) {
modElem = inputElem = null;
/*>>shiv*/
/*! HTML5 Shiv v3.6.1 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed */
/**
* @preserve HTML5 Shiv prev3.7.1 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
*/
;(function(window, document) {
/*jshint evil:true */
/** version */
var version = '3.7.0';
/** Preset options */
var options = window.html5 || {};
@ -1049,6 +1054,7 @@ window.Modernizr = (function( window, document, undefined ) { @@ -1049,6 +1054,7 @@ window.Modernizr = (function( window, document, undefined ) {
);
}());
} catch(e) {
// assign a false positive if detection fails => unable to shiv
supportsHtml5Styles = true;
supportsUnknownElements = true;
}
@ -1133,7 +1139,7 @@ window.Modernizr = (function( window, document, undefined ) { @@ -1133,7 +1139,7 @@ window.Modernizr = (function( window, document, undefined ) {
// a 403 response, will cause the tab/window to crash
// * Script elements appended to fragments will execute when their `src`
// or `text` property is set
return node.canHaveChildren && !reSkip.test(nodeName) ? data.frag.appendChild(node) : node;
return node.canHaveChildren && !reSkip.test(nodeName) && !node.tagUrn ? data.frag.appendChild(node) : node;
}
/**
@ -1187,7 +1193,7 @@ window.Modernizr = (function( window, document, undefined ) { @@ -1187,7 +1193,7 @@ window.Modernizr = (function( window, document, undefined ) {
'var n=f.cloneNode(),c=n.createElement;' +
'h.shivMethods&&(' +
// unroll the `createElement` calls
getElements().join().replace(/\w+/g, function(nodeName) {
getElements().join().replace(/[\w\-]+/g, function(nodeName) {
data.createElem(nodeName);
data.frag.createElement(nodeName);
return 'c("' + nodeName + '")';
@ -1213,9 +1219,11 @@ window.Modernizr = (function( window, document, undefined ) { @@ -1213,9 +1219,11 @@ window.Modernizr = (function( window, document, undefined ) {
if (html5.shivCSS && !supportsHtml5Styles && !data.hasCSS) {
data.hasCSS = !!addStyleSheet(ownerDocument,
// corrects block display not defined in IE6/7/8/9
'article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}' +
'article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}' +
// adds styling not present in IE6/7/8/9
'mark{background:#FF0;color:#000}'
'mark{background:#FF0;color:#000}' +
// hides non-rendered elements
'template{display:none}'
);
}
if (!supportsUnknownElements) {
@ -1242,7 +1250,12 @@ window.Modernizr = (function( window, document, undefined ) { @@ -1242,7 +1250,12 @@ window.Modernizr = (function( window, document, undefined ) {
* @memberOf html5
* @type Array|String
*/
'elements': options.elements || 'abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video',
'elements': options.elements || 'abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video',
/**
* current version of html5shiv
*/
'version': version,
/**
* A flag to indicate that the HTML5 style sheet should be inserted.

Loading…
Cancel
Save