18:31
<dprz>
Hey peeps, I am trying to understand how to read the following document to determine the correct (or rather expected) behaviour
18:33
<dprz>
I am trying to understand the URL Specification in particular (https://url.spec.whatwg.org/), and determine the expected result for a new URL that is not special (e.g. has a scheme of foo://, facebook://, my-app://)
18:40
<dprz>
On Chrome and other browsers currently creating a new URL of such a type will set the pathname of the non-special URL to everything after the colon prepended by a double slash (i.e. //, that is part of the URL and not URI), and the hostname and host is not set
18:40
<dprz>
however on NodeJS the following happens
18:42
<dprz>
I just wanted to understand how to read the specification properly to understand which one is the compliant one.
18:54
<Nn Jn>
I’m
20:38
<dprz>
https://www.ada-url.com/playground?url=foo%3A%2F%2Ftest%2F%25%3F%3D
20:38
<dprz>
I would presume based on this example that NodeJS is implementing it properly