Re: [whatwg/url] Invoking serializer "exclude fragment" from API (#628)

This technically isn't supported by Web IDL at the moment. Could you instead do

```js
function toStringWithoutFragment(url) {
  const u2 = new URL(url);
  u2.hash = '';
  return String(u2);
}
```

-- 
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/628#issuecomment-896967833

Received on Wednesday, 11 August 2021 16:23:44 UTC