Checks for IE8 normalising with dojo

by steveukx

HTML

<p>Click the block below to see if you have
    <code>e.preventDefault</code> available to you.</p>

CSS

p { font: 10pt/1.5 arial, sans-serif; }
div { height: 100px; width: 100px; background: red; cursor: pointer; }

JavaScript

var div = document.body.appendChild(
    document.createElement('div'));

require(['dojo/on'], function (on) {
    on(div, "click", function (e) {
        alert(typeof e.preventDefault);
    })
});