Skip to content

HighlightsFromPoint Explainer updates #1041

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion highlight/HighlightsFromPointsExplainer.md
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@ Here are some inspirational examples of how users may interact with highlighted
- When a user hovers over a misspelled word, the web app may display UI with suggested replacement text.
- When a user clicks an annotation in a document, the web app may emphasize and scroll into view the corresponding annotation in a pane which lists all the annotations in the document.

Currently, web developers who want to implement some sort of interaction with custom highlights need to use workarounds that are cumbersome to code and maintain and that potentially incur performance penalties.
Currently, web developers who want to implement interactions with custom highlights often need to use workarounds that involve directly editing the DOM with static ranges. This approach is cumbersome to code, difficult to maintain, and incurs performance penalties.

## Customer Problem Example

@@ -205,6 +205,10 @@ The API introduces no new security risks.
---
[Related issues](https://github.com/MicrosoftEdge/MSEdgeExplainers/labels/highlightsFromPoint) | [Open a new issue](https://github.com/MicrosoftEdge/MSEdgeExplainers/issues/new?template=highlightsfrompoint.md)

## Questions of Interest
Is there a demand for the API to return the Range object in addition to the Highlight object?
Are there performance issues regarding the "FromPoint" APIs (e.g. [caretPositionFromPoint](https://developer.mozilla.org/en-US/docs/Web/API/Document/caretPositionFromPoint))synchronous implementations?

## Appendix

### highlightsFromPoint IDL Proposed