mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-13 04:21:54 +00:00
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
This commit is contained in:
parent
59ed823724
commit
ea971792b5
Notes:
github-actions[bot]
2024-10-06 14:07:18 +00:00
Author: https://github.com/shannonbooth
Commit: ea971792b5
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1646
3 changed files with 18 additions and 5 deletions
|
@ -0,0 +1,10 @@
|
|||
<script src="../include.js"></script>
|
||||
<script>
|
||||
test(() => {
|
||||
try {
|
||||
location.href = 'http://@:www.invalid-url.com';
|
||||
} catch (e) {
|
||||
println(`Error setting href: ${e}`);
|
||||
}
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue