fix _selectionIsPartOfEndElementSelected for ff