mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-08 18:11:52 +00:00
15 lines
442 B
HTML
15 lines
442 B
HTML
<!DOCTYPE html>
|
|
<iframe id="ifr" srcdoc=""></iframe>
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
ifr.contentDocument.body.innerHTML = "<a href='foo.html'>foo</a>";
|
|
let href = ifr.contentDocument.body.querySelector("a").href;
|
|
if (href.endsWith("foo.html")) {
|
|
println("PASS (Didn't crash)");
|
|
} else {
|
|
println("FAIL");
|
|
}
|
|
ifr.remove();
|
|
});
|
|
</script>
|