Files
serenity/Tests/LibWeb/Text/input/HTML/Location-search-setter.html
Khaled Lakehal 71a01c8122 LibWeb: Add setter implementation for location.search
This commit implements the setter for `location.search`, allowing
updates to the query string of the URL.

(cherry picked from commit 514a2a1757b10b9b4ff020237c84f70ba5a79c4b)
2024-11-09 16:08:01 -05:00

17 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>