mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-14 07:02:54 +00:00
I haven't found this being mentioned in the current spec, but that is what chromium (atm the only other Navigation API implementer) does. Fixes crashing when location.hash is changed subsequently more than once using JS.
10 lines
222 B
HTML
10 lines
222 B
HTML
<!DOCTYPE html>
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
location.hash = "#1";
|
|
println(location.hash);
|
|
location.hash = "#2";
|
|
println(location.hash);
|
|
});
|
|
</script>
|