[BUG #7326] Check for IE document mode if necessary