-
Notifications
You must be signed in to change notification settings - Fork 476
fix: save_png doesn't work when character \xa0 is used #1644
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
fix: save_png doesn't work when character \xa0 is used #1644
Conversation
The character \xa0 is converted to when .outerHTML() is called, causing an error in the data-URL where the outer HTML is used.
|
Some other unicode characters are converted to entites, like |
|
We looked into this a bit, but documentation is scarce on this, and this is at least an improvement. Thanks @mariobuikhuizen |
|
meeseeksdev please backport to 0.12.x |
|
Owee, I'm MrMeeseeks, Look at me. There seem to be a conflict, please backport manually. Here are approximate instructions:
And apply the correct labels and milestones. Congratulations — you did some good work! Hopefully your backport PR will be tested by the continuous integration and merged soon! Remember to remove the If these instructions are inaccurate, feel free to suggest an improvement. |
The character \xa0 is converted to when .outerHTML() is called, causing an error in the data-URL where the outer HTML is used. (cherry picked from commit 4d5c293)
The character
\xa0is converted to when .outerHTML() is called, causing an error in the data-URL where the outer HTML is used.Code changes
Revert
&nbps;, generated by.outerHtml(), back to the original character\xa0.User-facing changes
save_png()will now work when\xa0is used.Steps to reproduce
Run the following:
Notice the save dialog is not appearing.
The dataURL produced with

: