ladybird/Tests/LibWeb/Text/input/DOM/setAttribute-with-emoji-in-attribute-name.html
Andreas Kling 1b81e0081d 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).
2023-12-04 00:04:04 +01:00

8 lines
207 B
HTML

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