Take the 2-minute tour ×  Possible Duplicate: Best way to detect
that HTML5 <canvas> is not supported  Now that $.browser is
being taken out of jQuery in favor of $.support, how would I
detect IE8 with jQuery, or with plain javascript?  if
($.browser.msie  && parseInt($.browser.version, 10) === 8) {
Sorry, but HTML will not work for me. So I can not do this:
<!--[if IE 8]> <script type="text/javascript">     ie = 8;
Specifically, I am looking to do work with the canvas tag and
IE8 does not support canvas, but jQuery.support does not detect
for canvas support.  share|improve this question The whole
reason for doing this is that you shouldn't need to test for
IE8. Why are you trying to? –  lonesomeday Jul 6 '12 at 21:33
That link doesn't say its being deprecated, it is just
explaining that feature detection is more recommended than
browser detection. –  Tyrsius Jul 6 '12 at 21:33 what do you
need to do in IE that is so impossible? the whole point of using
jquery is to forget which browser you are working on