[whatwg/url] Differentiate from zero-sized fragment and no fragment in url (Issue #779)

```
scheme://host:port/#
```
and
```
scheme://host:port/
```
if fed to the `URL` do not distinguish between the two: URL.hash returns `''`

and to make it even stranger passing `.hash = '#'` produces `scheme://host:port/#` but calling `.hash` returns `''` nonetheless.

would be nicer if `.hash` returns `undefined`/`null` if it is unset or `"#"` if the trailing hash is present.


-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/issues/779
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/url/issues/779@github.com>

Received on Thursday, 13 July 2023 17:39:33 UTC