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

HTMLRewriter: Wrong encoding/decoding of element attributes #3489

Closed
georgpukk opened this issue Jul 2, 2023 · 0 comments
Closed

HTMLRewriter: Wrong encoding/decoding of element attributes #3489

georgpukk opened this issue Jul 2, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@georgpukk
Copy link

What version of Bun is running?

0.6.12

What platform is your computer?

Darwin 22.3.0 arm64 arm

What steps can reproduce the bug?

new HTMLRewriter()
	.on('p', {
		element(element) {
			console.log(element.getAttribute('id'))
		}
	})
	.transform(new Response('<p id="Šžõäöü"></p>'))

What is the expected behavior?

$ Šžõäöü

What do you see instead?

$ Šžõäöü

Additional information

No response

@georgpukk georgpukk added the bug Something isn't working label Jul 2, 2023
Jarred-Sumner added a commit that referenced this issue Jul 2, 2023
Jarred-Sumner added a commit that referenced this issue Jul 3, 2023
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant