mirror of
https://github.com/Modernizr/Modernizr.git
synced 2026-01-14 01:58:00 -05:00
remove opera 11.00 bug, fixed in 11.10. ref #159. thx @ajpiano
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user