get the elements contained within the current text-selection