From 12b6f0c456c6df049e2704c92bb3a6d4d1364ec8 Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Thu, 23 Feb 2023 08:07:37 +0100 Subject: [PATCH] Add a size getter to URLSearchParams Tests: https://github.com/web-platform-tests/wpt/pull/38655. Fixes #163. --- url.bs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/url.bs b/url.bs index 18cb972b..02a3b5a3 100644 --- a/url.bs +++ b/url.bs @@ -3673,6 +3673,8 @@ so that running the URL parser on the output of running the URL serial interface URLSearchParams { constructor(optional (sequence<sequence<USVString>> or record<USVString, USVString> or USVString) init = ""); + readonly attribute unsigned long size; + undefined append(USVString name, USVString value); undefined delete(USVString name); USVString? get(USVString name); @@ -3797,6 +3799,9 @@ constructor steps are:

  • Initialize this with init. +

    The size getter steps are to return +this's list's size. +

    The append(name, value) method steps are: