Check the documentMode for IE