Take the following lump of HTML:
<span id="1">The </span><span id="2">quick brown fox </span><span id="3">jumped </span><span id="4">over the lazy dog.</span>
Which rendered, just looks like:
The quick brown fox jumped over the lazy dog.
If I were to highlight a portion of the rendered text, how could I tell which elements were covered by the highlighted area? For example if I highlighted "fox jumped" then I'd want to know that it was #2 and #3 that were included.