|
1 | 1 | /*!
|
2 |
| - * modernizr v3.11.3 |
| 2 | + * modernizr v3.12.0 |
3 | 3 | * Build https://modernizr.com/download?-details-svg-addtest-fnbind-printshiv-setclasses-testprop-dontmin
|
4 | 4 | *
|
5 | 5 | * Copyright (c)
|
|
35 | 35 | * @access public
|
36 | 36 | */
|
37 | 37 | var ModernizrProto = {
|
38 |
| - _version: '3.11.3', |
| 38 | + _version: '3.12.0', |
39 | 39 |
|
40 | 40 | // Any settings that don't work as separate modules
|
41 | 41 | // can go in here as configuration.
|
|
1156 | 1156 |
|
1157 | 1157 | ret = callback(div, rule);
|
1158 | 1158 | // If this is done after page load we don't want to remove the body so check if body exists
|
1159 |
| - if (body.fake) { |
| 1159 | + if (body.fake && body.parentNode) { |
1160 | 1160 | body.parentNode.removeChild(body);
|
1161 | 1161 | docElement.style.overflow = docOverflow;
|
1162 | 1162 | // Trigger layout so kinetic scrolling isn't disabled in iOS6+
|
|
1172 | 1172 | ;
|
1173 | 1173 |
|
1174 | 1174 | /**
|
1175 |
| - * domToCSS takes a camelCase string and converts it to kebab-case |
| 1175 | + * domToCSS takes a camelCase string and converts it to hyphen-case |
1176 | 1176 | * e.g. boxSizing -> box-sizing
|
1177 | 1177 | *
|
1178 | 1178 | * @access private
|
1179 | 1179 | * @function domToCSS
|
1180 | 1180 | * @param {string} name - String name of camelCase prop we want to convert
|
1181 |
| - * @returns {string} The kebab-case version of the supplied name |
| 1181 | + * @returns {string} The hyphen-case version of the supplied name |
1182 | 1182 | */
|
1183 | 1183 | function domToCSS(name) {
|
1184 | 1184 | return name.replace(/([A-Z])/g, function(str, m1) {
|
|
1267 | 1267 | ;
|
1268 | 1268 |
|
1269 | 1269 | /**
|
1270 |
| - * cssToDOM takes a kebab-case string and converts it to camelCase |
| 1270 | + * cssToDOM takes a hyphen-case string and converts it to camelCase |
1271 | 1271 | * e.g. box-sizing -> boxSizing
|
1272 | 1272 | *
|
1273 | 1273 | * @access private
|
1274 | 1274 | * @function cssToDOM
|
1275 |
| - * @param {string} name - String name of kebab-case prop we want to convert |
| 1275 | + * @param {string} name - String name of hyphen-case prop we want to convert |
1276 | 1276 | * @returns {string} The camelCase version of the supplied name
|
1277 | 1277 | */
|
1278 | 1278 | function cssToDOM(name) {
|
|
1294 | 1294 | // on our modernizr element, but instead just testing undefined vs
|
1295 | 1295 | // empty string.
|
1296 | 1296 |
|
1297 |
| - // Property names can be provided in either camelCase or kebab-case. |
| 1297 | + // Property names can be provided in either camelCase or hyphen-case. |
1298 | 1298 |
|
1299 | 1299 | function testProps(props, prefixed, value, skipValueTest) {
|
1300 | 1300 | skipValueTest = is(skipValueTest, 'undefined') ? false : skipValueTest;
|
|
1379 | 1379 |
|
1380 | 1380 | /**
|
1381 | 1381 | * testProp() investigates whether a given style property is recognized
|
1382 |
| - * Property names can be provided in either camelCase or kebab-case. |
| 1382 | + * Property names can be provided in either camelCase or hyphen-case. |
1383 | 1383 | *
|
1384 | 1384 | * @memberOf Modernizr
|
1385 | 1385 | * @name Modernizr.testProp
|
|
0 commit comments