diff options
author | Stjepan Glavina <stjepang@gmail.com> | 2016-04-01 22:25:08 +0200 |
---|---|---|
committer | Stjepan Glavina <stjepang@gmail.com> | 2016-04-05 16:10:05 +0200 |
commit | 7b38f289b0751a6e14ea3b5524bcadcf7f8c34dc (patch) | |
tree | 3b87c195d3343a2aa753eccf59ffe888f1580dd6 /components/script/dom/webidls | |
parent | b38fafcf11d2588fecc565c581260106411ad484 (diff) | |
download | servo-7b38f289b0751a6e14ea3b5524bcadcf7f8c34dc.tar.gz servo-7b38f289b0751a6e14ea3b5524bcadcf7f8c34dc.zip |
Implement URL.searchParams
Spec: https://url.spec.whatwg.org/#dom-url-searchparams
Diffstat (limited to 'components/script/dom/webidls')
-rw-r--r-- | components/script/dom/webidls/URL.webidl | 2 | ||||
-rw-r--r-- | components/script/dom/webidls/URLSearchParams.webidl | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/components/script/dom/webidls/URL.webidl b/components/script/dom/webidls/URL.webidl index 8c5d6e1580e..6843bd8b6c2 100644 --- a/components/script/dom/webidls/URL.webidl +++ b/components/script/dom/webidls/URL.webidl @@ -20,7 +20,7 @@ interface URL { attribute USVString port; attribute USVString pathname; attribute USVString search; - // readonly attribute URLSearchParams searchParams; + readonly attribute URLSearchParams searchParams; attribute USVString hash; // This is only doing as well as gecko right now. diff --git a/components/script/dom/webidls/URLSearchParams.webidl b/components/script/dom/webidls/URLSearchParams.webidl index e2075d96a6d..e0266ca6246 100644 --- a/components/script/dom/webidls/URLSearchParams.webidl +++ b/components/script/dom/webidls/URLSearchParams.webidl @@ -15,6 +15,8 @@ interface URLSearchParams { sequence<USVString> getAll(USVString name); boolean has(USVString name); void set(USVString name, USVString value); + // Be careful with implementing iterable interface. + // Search params might be mutated by URL::SetSearch while iterating (discussed in PR #10351). // iterable<USVString, USVString>; stringifier; }; |