IE 9+ apparently supports both document.attachEvent and document.createEvent, but only works properly with the latter. We had to change our checking order accordingly.
Version bump.