Re: [web-annotation] Selecting more than text

.../p/node()[1] to ../p/node()[3] would select the first text node and the
image.

If you wanted to select only part of the first text node than you would
need to further refine that.

Since XPath to select the text would cause the evaluator to return a string
rather than a node, I suggested on that GH issue that a full selector for
each end of the range makes processing easier. A subSelector on the start
could refine the start point to be inside the text node.

On Tue, Nov 10, 2015 at 2:02 PM Benjamin Young <bigbluehat@hypothes.is>
wrote:

> But what if I want select `I <img src=""/>` from the example above?
>
> In this case, I'm inside a node but selecting more than text and the
> expectation is that I'd be displaying the highlight "fully formed"--not as
> code.
>
> This is the use case for the Kanji example above. Text and image (of text)
> highlighted together.
>

Received on Tuesday, 10 November 2015 22:21:54 UTC