Skip to content

Commit

Permalink
safari 4 is failing inputtypes.range. it shouldnt. i attempted a fix …
Browse files Browse the repository at this point in the history
…that works for webkit but fails opera. It remains, but commented out. Issue is still live
  • Loading branch information
paulirish committed Jun 7, 2010
1 parent 5943dba commit baf1c0e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions modernizr.js
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,13 @@ window.Modernizr = (function(window,doc,undefined){

f.value = smile;

/* Safari 4 is allowing the smiley as a value, and incorrecty failing..
the test fixes for webkit only, but breaks Opera..
if (/range/.test(f.type)){
bool = test_props_all('appearance',function(prop,m){ return m_style[prop] !== 'textfield' })
}
*/

if (/tel|search/.test(f.type)){
// spec doesnt define any special parsing or detectable UI
// behaviors so we pass these through as true
Expand Down

0 comments on commit baf1c0e

Please sign in to comment.