-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request: Standalone Code #4
Comments
I think I've figured out how to check browser support. I've only tested this in Safari 5.1.1, Firefox 7.0.1, Chrome 15.0.874.121 and Opera 11.60 on my mac. So someone will need to see how this works in browsers on Windows. var search = $('#search')[0];
if( search.list !== null || search.list !== undefined )
console.log('supported!'); // Firefox and Opera pass |
what about safari?? coz safari has partial support |
@ruanmer The code I included doesn't include Safari. Safari acts kind of weird because it finds the |
Yeah the majority of the suckness of testing for this is that Safari reports success but should not. Ideally we think of a fancy test we can perform (beyond just checking for the list attribute) that gives correct results in all browsers. I'm fairly stumped at the moment. Ideally, that test would be baked into Modernizr. |
Any updates? +1 for stand alone. |
This will check for browser support then load the library w/o modernizr. Then
|
I'd love to use this on all my sites, but we don't use jQuery or Modernizr and that's a lot of extra code (and page memory) to include just to get this functionality.
Please consider creating a standalone version.
The text was updated successfully, but these errors were encountered: