- From: Felix Becker <notifications@github.com>
- Date: Sun, 14 Oct 2018 09:55:16 -0700
- To: whatwg/url <url@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Sunday, 14 October 2018 16:55:37 UTC
Thanks for the explanation. Still, why string `"null"`? Does the string `"null"` have any meaning in the web security model? For example, if I wanted to check if two URLs are considered same-origin, it seems like I now can't just do `url.origin === url.origin`, since two URLs with `"null"` origin should probably _not_ be considered same-origin, right? But it's not obvious that that is a valid case that needs to be handled. A type `string | null` would make it a lot clearer that a URL _may not have an origin_ and that that is a case that needs to be accounted for. -- 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/310#issuecomment-429642577
Received on Sunday, 14 October 2018 16:55:37 UTC