W3C home > Mailing lists > Public > public-annotation@w3.org > November 2015

Re: [web-annotation] Functionality: XPath Range Selector

From: Randall Leeds via GitHub <sysbot+gh@w3.org>
Date: Tue, 03 Nov 2015 23:10:34 +0000
To: public-annotation@w3.org
Message-ID: <issue_comment.created-153518000-1446592234-sysbot+gh@w3.org>
Hypothesis exemplifies this use case every day. Its XPath Range 
selector has boundaries defined by both XPath to a node and text 
offset within that node. That the XPath selects an Element and the 
offset a text position accounts for the unpredictability of the 
slicing of Text Nodes and the possible presence of other highlight 
spans. Arguably, an even better implementation would ignore all inline
 phrasing Elements and measure text offset from the beginning of the 

Not letting each boundary be specified further than an XPath string 
effectively makes this selector unsuitable for use in Hypothesis.

GitHub Notif of comment by tilgovi
Received on Tuesday, 3 November 2015 23:10:36 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:54:42 UTC