mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-03 15:41:57 +00:00
This commit implements the setter for `location.search`, allowing updates to the query string of the URL.
16 lines
454 B
HTML
16 lines
454 B
HTML
<!DOCTYPE html>
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
asyncTest(done => {
|
|
try {
|
|
if (window.location.search === "") {
|
|
window.location.search = "?foo=bar";
|
|
} else {
|
|
println(`location.search set to ${window.location.search}`);
|
|
done();
|
|
}
|
|
} catch (e) {
|
|
println(`Setting location.search throws ${e.name}`);
|
|
}
|
|
});
|
|
</script>
|