tilgovi commented on a change in pull request #88: URL: https://github.com/apache/incubator-annotator/pull/88#discussion_r485068658
########## File path: packages/dom/src/text-quote/describe.ts ########## @@ -21,44 +21,31 @@ import seek from 'dom-seek'; import type { TextQuoteSelector } from '@annotator/selector'; -import type { DomScope } from '../types'; -import { ownerDocument, rangeFromScope } from '../scope'; - export async function describeTextQuote( range: Range, - scope: DomScope = ownerDocument(range).documentElement, + scope: Range = range, Review comment: Oh, my mistake, I am thinking of the other function to calculate context. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org