Skip to content

Commit

Permalink
repeat ceea6ab (remove opera's input type=color check). ref #159
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed May 12, 2012
1 parent 36efe9e commit 4c5d38a
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions modernizr.js
Original file line number Diff line number Diff line change
Expand Up @@ -923,14 +923,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;
Expand Down

0 comments on commit 4c5d38a

Please sign in to comment.