// IE6 will false positive on some tests due to the style element inside the test div somehow interfering offsetHeight, so insert it into body or fakebody.
// Opera will act all quirky when injecting elements in documentElement when page is served as xml, needs fakebody too. #270
(body?div:fakeBody).innerHTML+=style;
fakeBody.appendChild(div);
fakeBody.appendChild(div);
if(!body){
if(!body){
fakeBody.style.background='';
//avoid crashing IE8, if background image is used
fakeBody.style.overflow='hidden';
fakeBody.style.background='';
//Safari 5.13/5.1.4 OSX stops loading if ::-webkit-scrollbar is used and scrollbars are visible
fakeBody.style.overflow='hidden';
docOverflow=docElement.style.overflow;
docOverflow=docElement.style.overflow;
docElement.style.overflow='hidden';
docElement.style.overflow='hidden';
docElement.appendChild(fakeBody);
docElement.appendChild(fakeBody);
}
}
ret=callback(div,rule);
ret=callback(div,rule);
if(!body){
// If this is done after page load we don't want to remove the body so check if body exists
* An array or space separated string of node names of the elements to shiv.
* @memberOf html5
* @type Array|String
*/
'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.
* @memberOf html5
* @type Boolean
*/
'shivCSS':(options.shivCSS!==false),
/**
* Is equal to true if a browser supports creating unknown/HTML5 elements