Skip to content
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

After creating a Highlight the new text selection range is set incorrectly #106

Open
okramovic opened this issue Mar 21, 2023 · 0 comments

Comments

@okramovic
Copy link

Bug, steps to reproduce:

  1. add web-highlighter capabilities to the websites (via browser extension)
  2. go to https://en.wikipedia.org/wiki/Flavan-3-ol
  3. highlight selection that spans multiple textNodes in one paragraph, for example in the first one "sometimes referred to as flavanols) are a subgroup"
  4. highlight created is correct. but the new text selection is set wrong, it seems it misses the last textNode when setting new range? (see attached screenshot)

Screenshot 2023-03-21 at 09 50 20

@okramovic okramovic changed the title After creating a Highlight text selection is range wrong After creating a Highlight the new text selection range is set incorrectly Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant