Account for DOM selection in sub-shadow elements

	- Fixes #480