ladybird/Tests/LibWeb/Text/input/HTML/Location-search-setter.html
Khaled Lakehal 514a2a1757 LibWeb: Add setter implementation for location.search
This commit implements the setter for `location.search`, allowing
updates to the query string of the URL.
2024-08-21 10:52:19 +01:00

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>