fixed Dom facet method hasTextBeforeSelection