LibWeb: Make a elements honor base element's target

This commit is contained in:
Psychpsyo 2025-02-14 18:28:29 +01:00 committed by Andreas Kling
commit f839f1b44b
Notes: github-actions[bot] 2025-02-16 08:22:46 +00:00
8 changed files with 50 additions and 8 deletions

View file

@ -0,0 +1,16 @@
<!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>