mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-06 09:36:08 +00:00
LibWeb: Make a elements honor base element's target
This commit is contained in:
parent
79d6d5a7fa
commit
f839f1b44b
Notes:
github-actions[bot]
2025-02-16 08:22:46 +00:00
Author: https://github.com/Psychpsyo
Commit: f839f1b44b
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3576
8 changed files with 50 additions and 8 deletions
16
Tests/LibWeb/Text/input/base/a-element-target.html
Normal file
16
Tests/LibWeb/Text/input/base/a-element-target.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue