mirror of
https://github.com/servo/servo.git
synced 2025-07-30 02:30:21 +01:00
Reset searchParam in URL.href setter
https://github.com/whatwg/url/issues/117
This commit is contained in:
parent
85de5ec743
commit
eee317352c
2 changed files with 1 additions and 4 deletions
|
@ -144,6 +144,7 @@ impl URLMethods for URL {
|
||||||
match Url::parse(&value.0) {
|
match Url::parse(&value.0) {
|
||||||
Ok(url) => {
|
Ok(url) => {
|
||||||
*self.url.borrow_mut() = url;
|
*self.url.borrow_mut() = url;
|
||||||
|
self.search_params.set(None); // To be re-initialized in the SearchParams getter.
|
||||||
Ok(())
|
Ok(())
|
||||||
},
|
},
|
||||||
Err(error) => {
|
Err(error) => {
|
||||||
|
|
|
@ -74,7 +74,3 @@
|
||||||
|
|
||||||
[Parsing: <h\tt\nt\rp://h\to\ns\rt:9\t0\n0\r0/p\ta\nt\rh?q\tu\ne\rry#f\tr\na\rg> against <about:blank>]
|
[Parsing: <h\tt\nt\rp://h\to\ns\rt:9\t0\n0\r0/p\ta\nt\rh?q\tu\ne\rry#f\tr\na\rg> against <about:blank>]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[URL.searchParams and URL.search setters, update propagation]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue