 <p>Check out everything at <a href="http://diveintohtml5.info/detect.html#techniques" rel="nofollow">Dive into HTML5</a> especially the 'Detecting HTML5 Techniques' section. It has pretty much everything you may need.</p>