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

Issue with localisation - Failed to execute 'setEnd' on 'Range': The offset 26 is larger than the node's length (25) #3221

Open
nolafs opened this issue Dec 11, 2024 · 0 comments

Comments

@nolafs
Copy link

nolafs commented Dec 11, 2024

Bug reports:

I currently working on site with multiple language support and run into an issue with German. Most language do work perfectly fine but 'umlaute' in German crash the conversion:

text.ts:90 Uncaught (in promise) IndexSizeError: Failed to execute 'setEnd' on 'Range': The offset 26 is larger than the node's length (25).
at createRange (text.ts:90:11)
at text.ts:31:37
at Array.forEach ()
at parseTextBounds (text.ts:28:14)
at new TextContainer (text-container.ts:12:27)
at parseNodeTree (node-parser.ts:22:35)
at parseNodeTree (node-parser.ts:48:25)
at parseNodeTree (node-parser.ts:48:25)
at parseNodeTree (node-parser.ts:48:25)
at parseNodeTree (node-parser.ts:48:25)

Specifications:

  • html2canvas Verstion 1.4.1
  • Chrome 131.0.6778.86
  • Operating system: MacOS
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