remove opera 11.00 bug, fixed in 11.10. ref #159. thx @ajpiano

This commit is contained in:
Paul Irish
2012-02-20 15:42:29 -08:00
parent f82feadf5b
commit ceea6ab0ba

View File

@@ -897,14 +897,6 @@ window.Modernizr = (function( window, document, undefined ) {
// Real url and email support comes with prebaked validation.
bool = inputElem.checkValidity && inputElem.checkValidity() === false;
} else if ( /^color$/.test(inputElemType) ) {
// chuck into DOM and force reflow for Opera bug in 11.00
// github.com/Modernizr/Modernizr/issues#issue/159
docElement.appendChild(inputElem);
docElement.offsetWidth;
bool = inputElem.value != smile;
docElement.removeChild(inputElem);
} else {
// If the upgraded input compontent rejects the :) text, we got a winner
bool = inputElem.value != smile;