Skip to content

Commit 68e5b83

Browse files
committed
update to html5shiv@3.7.0
1 parent c07922f commit 68e5b83

File tree

3 files changed

+31
-12
lines changed

3 files changed

+31
-12
lines changed

html5shiv/dist/html5shiv-debug.js

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1-
/*! HTML5 Shiv v3.6.1 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed */
1+
/**
2+
* @preserve HTML5 Shiv v3.7.0 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
3+
*/
24
;(function(window, document) {
35
/*jshint evil:true */
6+
/** version */
7+
var version = '3.7.0';
8+
49
/** Preset options */
510
var options = window.html5 || {};
611

@@ -43,6 +48,7 @@
4348
);
4449
}());
4550
} catch(e) {
51+
// assign a false positive if detection fails => unable to shiv
4652
supportsHtml5Styles = true;
4753
supportsUnknownElements = true;
4854
}
@@ -75,7 +81,7 @@
7581
var elements = html5.elements;
7682
return typeof elements == 'string' ? elements.split(' ') : elements;
7783
}
78-
84+
7985
/**
8086
* Returns the data associated to the given document
8187
* @private
@@ -181,7 +187,7 @@
181187
'var n=f.cloneNode(),c=n.createElement;' +
182188
'h.shivMethods&&(' +
183189
// unroll the `createElement` calls
184-
getElements().join().replace(/\w+/g, function(nodeName) {
190+
getElements().join().replace(/[\w\-]+/g, function(nodeName) {
185191
data.createElem(nodeName);
186192
data.frag.createElement(nodeName);
187193
return 'c("' + nodeName + '")';
@@ -207,9 +213,11 @@
207213
if (html5.shivCSS && !supportsHtml5Styles && !data.hasCSS) {
208214
data.hasCSS = !!addStyleSheet(ownerDocument,
209215
// corrects block display not defined in IE6/7/8/9
210-
'article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}' +
216+
'article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}' +
211217
// adds styling not present in IE6/7/8/9
212-
'mark{background:#FF0;color:#000}'
218+
'mark{background:#FF0;color:#000}' +
219+
// hides non-rendered elements
220+
'template{display:none}'
213221
);
214222
}
215223
if (!supportsUnknownElements) {
@@ -236,7 +244,12 @@
236244
* @memberOf html5
237245
* @type Array|String
238246
*/
239-
'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',
247+
'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',
248+
249+
/**
250+
* current version of html5shiv
251+
*/
252+
'version': version,
240253

241254
/**
242255
* A flag to indicate that the HTML5 style sheet should be inserted.
@@ -285,4 +298,4 @@
285298
// shiv the document
286299
shivDocument(document);
287300

288-
}(this, document));
301+
}(this, document));

html5shiv/dist/html5shiv.js

Lines changed: 6 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

html5shiv/package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
{
22
"name": "html5shiv",
3-
"root": "gallery",
4-
"version": "3.6.1",
3+
"family": "gallery",
4+
"version": "3.7.0",
55
"author": "aFarkas",
66
"homepage": "http://paulirish.com/2011/the-history-of-the-html5-shiv/",
77
"description": "This script is the defacto way to enable use of HTML5 sectioning elements in legacy Internet Explorer.",
88
"repository": {
99
"type": "git",
1010
"url": "https://github.com/aFarkas/html5shiv.git"
11+
},
12+
"spm": {
13+
"output": "html5shiv.js"
1114
}
1215
}

0 commit comments

Comments
 (0)