1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 18:20:43 +09:00
ladybird/Tests/LibWeb/Text/input/DOM/Range-to-string.html
2025-03-20 11:50:49 +01:00

14 lines
427 B
HTML

<!DOCTYPE html>
<body><p id="p1"><b>Hello💨</b>😮 World</p>
<script src="../include.js"></script>
<script>
test(() => {
const p1 = document.getElementById("p1");
const hello = p1.firstChild.firstChild;
const world = p1.lastChild;
const range = document.createRange();
range.setStart(hello, 2);
range.setEnd(world, 5);
println(range.toString());
});
</script>