Extrapolate selections of DOM elements to include similar elements