mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-09 09:34:57 +09:00
16 lines
691 B
HTML
16 lines
691 B
HTML
<!DOCTYPE html>
|
|
<script src="../include.js"></script>
|
|
<iframe id="frame" src="../../data/base/a-element-target-sub.html"></iframe>
|
|
<script>
|
|
asyncTest(done => {
|
|
window.onload = () => {
|
|
frame.onload = () => {
|
|
frame.onload = () => {
|
|
println(frame.contentDocument.location.href.includes("a-element-target-sub-alt.html")? "Parent frame navigated successfully!" : "Parent frame incorrectly navigated to " + frame.contentDocument.location.href);
|
|
done();
|
|
}
|
|
}
|
|
frame.contentDocument.getElementById("frame").contentDocument.getElementById("a").click();
|
|
};
|
|
});
|
|
</script>
|