mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-10 02:51:55 +00:00
12 lines
376 B
HTML
12 lines
376 B
HTML
<!DOCTYPE html>
|
|
<body>
|
|
<script src="include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
let newDoc = document.implementation.createHTMLDocument("foo");
|
|
let newDocP = newDoc.createElement("p");
|
|
let selection = window.getSelection();
|
|
selection.setBaseAndExtent(document.body, 0, newDocP, 0);
|
|
println("PASS (Didn't crash)");
|
|
});
|
|
</script>
|