I was looking for a way to upgrade the Modernizer FormDatathe other day and could not find it.
However, this is easy to do without the Upgrade:
window.FormData // exists if it exists, undefined if it doesn't!
So:
yepnope({
test : "FormData" in window,
yep : 'normal.js',
nope : 'flashupload.js'
});
FWIW, compatibility with MDC forFormData says you will target:
- Chrome 7+
- Firefox 4.0
- IE 10+
- Safari 5+
... Opera support unknown
source
share