Reset searchParam in URL.href setter

https://github.com/whatwg/url/issues/117
This commit is contained in:
Simon Sapin 2016-04-22 14:31:51 +02:00
parent 85de5ec743
commit eee317352c
2 changed files with 1 additions and 4 deletions

View file

@ -144,6 +144,7 @@ impl URLMethods for URL {
match Url::parse(&value.0) {
Ok(url) => {
*self.url.borrow_mut() = url;
self.search_params.set(None); // To be re-initialized in the SearchParams getter.
Ok(())
},
Err(error) => {