Fallback Image code

I think it's been worked on:

However would this help, instead of detecting IE would this work for detecting HTML 5?