isSelectionValid changes

Range start and end containers now set to be text nodes for entity AND
structure tag checks.