Skip to content

Commit 58e1a29

Browse files
author
aFarkas
committed
make saveClones more strict to catch some edge cases (fixes github.com/Modernizr/Modernizr#647)
1 parent 38d1e45 commit 58e1a29

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

dist/html5shiv-printshiv.js

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/html5shiv.js

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/html5shiv-printshiv.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! HTML5 Shiv v3.6 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed */
1+
/*! HTML5 Shiv v3.6.1 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed */
22
;(function(window, document) {
33
/*jshint evil:true */
44
/** Preset options */
@@ -7,8 +7,8 @@
77
/** Used to skip problem elements */
88
var reSkip = /^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i;
99

10-
/** Not all elements can be cloned in IE (this list can be shortend) **/
11-
var saveClones = /^<|^(?:a|b|button|code|div|fieldset|form|h1|h2|h3|h4|h5|h6|i|iframe|img|input|label|li|link|ol|option|p|param|q|script|select|span|strong|style|table|tbody|td|textarea|tfoot|th|thead|tr|ul)$/i;
10+
/** Not all elements can be cloned in IE **/
11+
var saveClones = /^(?: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;
1212

1313
/** Detect whether the browser supports default html5 styles */
1414
var supportsHtml5Styles;

src/html5shiv.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! HTML5 Shiv v3.6 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed */
1+
/*! HTML5 Shiv v3.6.1 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed */
22
;(function(window, document) {
33
/*jshint evil:true */
44
/** Preset options */
@@ -7,8 +7,8 @@
77
/** Used to skip problem elements */
88
var reSkip = /^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i;
99

10-
/** Not all elements can be cloned in IE (this list can be shortend) **/
11-
var saveClones = /^<|^(?:a|b|button|code|div|fieldset|form|h1|h2|h3|h4|h5|h6|i|iframe|img|input|label|li|link|ol|option|p|param|q|script|select|span|strong|style|table|tbody|td|textarea|tfoot|th|thead|tr|ul)$/i;
10+
/** Not all elements can be cloned in IE **/
11+
var saveClones = /^(?: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;
1212

1313
/** Detect whether the browser supports default html5 styles */
1414
var supportsHtml5Styles;

0 commit comments

Comments
 (0)