testing IE8 white-space version for document.createEvent