We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
say we have some css in our html
<style> html { color: #aabbcc } </style>
and that is fed to this
await page.goto(`data:text/html,${html}`, {
the # is read as a hash in a uri, causing it to only render the html up to that character.
replacing that line with
await page.goto(`data:text/html;base64,${Buffer.from(html).toString('base64')}`, {
fixes the issue. (sending the uri as base64 instead)
The text was updated successfully, but these errors were encountered:
Send data URI as base64
32e3270
this prevents invalid URI characters from messing with page rendering, as seen in westmonroe#21
@mrfrase3 Thanks for submitting this issue and the associated PR. We will review and get back to you shortly.
Sorry, something went wrong.
@mrfrase3
This has been merged in and published in the latest version on npm.
No branches or pull requests
say we have some css in our html
and that is fed to this
the # is read as a hash in a uri, causing it to only render the html up to that character.
replacing that line with
fixes the issue. (sending the uri as base64 instead)
The text was updated successfully, but these errors were encountered: