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

DOMException: Failed to execute 'getEndPositionOfChar' on 'SVGTextContentElement': The charnum provided (1) is greater than the maximum bound (0). #1363

Open
sumtpatil1995 opened this issue Nov 11, 2020 · 4 comments

Comments

@sumtpatil1995
Copy link

I'm getting

DOMException: Failed to execute 'getEndPositionOfChar' on 'SVGTextContentElement': The charnum provided (1) is greater than the maximum bound (0).

I'm new to brat so it would be really helpful if someone knows how to fix this

@ufo5260987423
Copy link

Hey buddy,
this seems like is because you have marked a very long text as some entity:
I suppose that brat don't allow entity span to cross multiple lines. In fact, it tries very hard to make a marked text span take up a position in single line.

We are solving this problem and may pull a fix request in 2021.03

@ufo5260987423
Copy link

Or you can replace your visualizer.js and util.js in client/src with master branch's version

@sumtpatil1995
Copy link
Author

@ufo5260987423 I'm trying to highlight the 1st word of the line and it's giving me this warning and stops the view.. is there any way that I can at least render the text on the view?

@2491152758
Copy link

Or you can replace your visualizer.js and util.js in client/src with master branch's version
I encountered the same problem and solved it by your way,very userful

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

3 participants