- From: Toms Tilgalis <notifications@github.com>
- Date: Fri, 31 Jan 2020 07:29:41 -0800
- To: whatwg/url <url@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 31 January 2020 15:29:44 UTC
Today encountered issue that methods entries() and forEach() are not working as expected. JS Fiddle - https://jsfiddle.net/q70vhod4/1/ `let link = 'http://demo.com?a=1&b=2&c=3'; let url = new URL(link); url.searchParams.forEach(function(value, key, parent){ parent.delete(key); }); console.log(url.toString()); let link2 = "a=1&b=2&c=3"; let url2 = new URLSearchParams(link2); for (let entry in url2.entries()) { console.log(entry[0] + ' : ' + entry[1]); }` Tested on these browsers: FireFox Developer Edition - 73.0b12 FireFox - 72.0.2 Chrome - 79.0.3945.130 Edge - 44.17763.831.0 -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/url/issues/462
Received on Friday, 31 January 2020 15:29:44 UTC