Re: [whatwg/url] [Proposal] Specify a fragment-directive meant for UA instructions (#445)

> There should probably be a corresponding issue against the HTML Standard as this impacts navigation.

Do you mean for the entire thing or to extract the loading portion of it? Let me know and I'll follow up on that.

> I'm a bit surprised that setting location.hash to the same value multiple times does not trigger multiple events, this is counter to how we handle "no-op" mutations elsewhere.

I'm not sure I understand, setting the same value to hash today doesn't cause multiple events. The proposal as-is wouldn't change that, e.g.:

```
location.hash = "test##foo"
// hashchange fired
location.hash = "test##bar"
// hashchange *not* fired
```

Or is the surprise that 'hashchange' _isn't_ fired in the second case? I can see the argument that it may be  somewhat surprising but  reading `location.hash` will return "#test" in both cases so I think not firing the event is more intuitive.

-- 
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/445#issuecomment-523194074

Received on Tuesday, 20 August 2019 21:04:46 UTC