Files
serenity/Tests/LibWeb/Text/input/HTML/a-element-set-protocol-on-href.html
Shannon Booth 51b710bce1 LibWeb: Actually perform "update the href steps"
We completely missed this step, which made setters not actually do
anything!

Fixes 336 test failures on:

https://wpt.live/url/url-setters-a-area.window.html
(cherry picked from commit deff8df2c79af718f08f16bc47f5a22ac6add553)
2024-11-07 21:52:13 -05:00

11 lines
268 B
HTML

<a id="a" href="http://serenityos.org"></a>
<script src="../include.js"></script>
<script>
test(() => {
const aElement = document.getElementById("a");
println(a.protocol);
a.protocol = "https";
println(a.protocol);
})
</script>