Files
serenity/Tests/LibWeb/Text/input/URL/search-params-has.html
Shannon Booth 4c181bdf7f LibWeb: Implement value argument of URLSearchParams.has
(cherry picked from commit 264b5160c2099f1aab6f06ece720de984ea994b2)
2024-10-19 15:26:29 -04:00

12 lines
399 B
HTML

<script src="../include.js"></script>
<script>
test(() => {
const params = new URLSearchParams('animal=octopus&place=ocean');
println(params.has('non-existing-key'));
println(params.has('animal'));
println(params.has('place', 'non-existing-value'));
println(params.has('place', 'ocean'));
println(params.has('animal', 'ocean'));
});
</script>