MicrosoftEdge / MicrosoftEdge/MSEdgeExplainers

Is an API similar to elementsFromPoint needed for highlights?

Open
#107 0 comments 0 reactions 1 assignee View on GitHub

@sanketj is already working on this.

Since Jan 8, 2020.

HighlightEvents
Dominant language
HTML
Stars
1.4k
Forks
286
Avg merge
3d 1h
Merged PRs (30d)
8

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.