Fixed IE bug where selection.getNode might return elements outside the editable document.