H2O is a web app for creating and reading open educational resources, primarily in the legal field
GNU Affero General Public License v3.0
37
stars
30
forks
source link
Attempting to highlight across an inline image or elision throws a JS exception #1771
Closed
lizadaly closed 2 years ago
I wouldn't have thought to try this except that the code seems to want to handle the case where a highlight spans an image boundary:
An exception will be thrown in the JS console and Vue will stop processing until the page is refreshed.
I would expect at least that no exception would be thrown, even if the resulting highlight is somewhat malformed.
There are similar issues in Sentry but I think they are slightly different cases of trying to highlight across non-text nodes.