mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Implement URLSearchParams's size
Signed-off-by: 2shiori17 <98276492+2shiori17@users.noreply.github.com>
This commit is contained in:
parent
61fe4cf606
commit
b6d3ff97de
3 changed files with 6 additions and 26 deletions
|
@ -91,6 +91,11 @@ impl URLSearchParams {
|
|||
}
|
||||
|
||||
impl URLSearchParamsMethods for URLSearchParams {
|
||||
// https://url.spec.whatwg.org/#dom-urlsearchparams-size
|
||||
fn Size(&self) -> u32 {
|
||||
self.list.borrow().len() as u32
|
||||
}
|
||||
|
||||
// https://url.spec.whatwg.org/#dom-urlsearchparams-append
|
||||
fn Append(&self, name: USVString, value: USVString) {
|
||||
// Step 1.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue