Files
serenity/Tests/LibWeb/Text/input/HTML/Location-set-invalid-href-url.html
Shannon Booth 9150241db9 LibWeb: Throw a SyntaxError on invalid URL for Location href setter
Aligning with a spec update, fixing 195 tests for:

https://wpt.live/url/failure.html
(cherry picked from commit ea971792b5da5f10cadb4f88f49c9722d88b32f6)
2024-11-11 17:22:42 -05:00

11 lines
237 B
HTML

<script src="../include.js"></script>
<script>
test(() => {
try {
location.href = 'http://@:www.invalid-url.com';
} catch (e) {
println(`Error setting href: ${e}`);
}
});
</script>