Open
Description
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.