MSEdgeExplainers icon indicating copy to clipboard operation
MSEdgeExplainers copied to clipboard

Is an API similar to elementsFromPoint needed for highlights?

Open sanketj opened this issue 6 years ago • 0 comments

Such an API would allow the user to get a collection of all hit highlight ranges under a given pointer. This would allow multiple types of highlights to be composed at the web app's option.

Handing out a collection of all hit highlights may not work well, however, for scenarios where separate uncoordinated frameworks or extensions are trying to work together (ex. CKEditor may provide find-on-page and annotation highlights while Grammarly provides spellcheck highlights). Though perhaps this can be solved by making the API take a HighlightRangeGroup parameter, and only return the collection of ranges that are a part of that group.

sanketj avatar Sep 11 '19 07:09 sanketj