Very small IE detect

HTML

<!doctype html>
<html>
    <head>
        <script type="text/javascript">

(function() {
 "use strict";
 var tmp = (document["documentMode"] || document.attachEvent) && "ev";
 msie = tmp 
 && (tmp = window[tmp + "al"])
 && tmp("/*@cc_on 1;@*/")
 && +((/msie (\d+)/i.exec(navigator.userAgent) || [])[1] || 0);
 return msie || void 0;})(document);
</script>
    </head>
    <body>
        <div>Body content still intact.</div>
    </body>
</html>

CSS

body div {
    font-weight: bold;
}