1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 10:28:13 +00:00

LibWeb: Don't crash on Element.setAttribute() with emoji in name

We were mistakenly using StringBuilder's append(char) when we really
wanted append_code_point(u32).
This commit is contained in:
Andreas Kling 2023-12-03 23:20:33 +01:00
parent dbca63a1db
commit 1b81e0081d
3 changed files with 10 additions and 1 deletions

View file

@ -0,0 +1,8 @@
<script src="../include.js"></script>
<script>
test(() => {
const e = document.createElement("div");
e.setAttribute("🧐", "");
println("PASS (Didn't crash)");
});
</script>