1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-15 15:14:58 +00:00
serenity/Tests/LibWeb/Text/input/DOM/Text-set-get-data.html
Shannon Booth 1f88046bb2 LibWeb: Add a test for setting and getting Text data
This is a pretty straightforward test, but I managed to make this crash
on real sites while trying to fix #20971 without any other test in the
existing suite failing.
2023-12-22 08:19:51 +00:00

9 lines
202 B
HTML

<script src="../include.js"></script>
<script>
test(() => {
const str = 'Next 🙃';
let text = new Text(str);
text.data = str;
println(text.data);
});
</script>