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

Re: [web-annotation] XPath Range Selector

From: BigBlueHat via GitHub <sysbot+gh@w3.org>
Date: Wed, 11 Nov 2015 21:43:45 +0000
To: public-annotation@w3.org
Message-ID: <issue_comment.created-155919060-1447278224-sysbot+gh@w3.org>
@tilgovi after reading [DOM 
Range](https://dom.spec.whatwg.org/#ranges) and your work on 
[xpath-range](https://github.com/openannotation/xpath-range) (and 
specifically the [`toRange()` 
method](https://github.com/openannotation/xpath-range/blob/master/src/range.js#L36-L48)),
 I'm beginning to understand your desire for a Range object.

Having flexibility in how we express the `Range.startContainer` and 
`Range.endContainer` as well as the ability to state that the 
selection should include more than the "stringification" (to address 
#107) seems key to solving the "DOM-based" use cases, simplifying the 
construction of selector-to-range code, and (possibly) making the 
whole thing more sensible to the watching world. :smile: 

So :+1: to you creating an issue for a `Range` object in which we can 
stuff various selectors. :smile_cat: 

-- 
GitHub Notif of comment by BigBlueHat
See 
https://github.com/w3c/web-annotation/issues/95#issuecomment-155919060
Received on Wednesday, 11 November 2015 21:43:46 UTC

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