A network-path reference (e.g., //example.com/
) is a relative reference. For resolving a relative reference, a base URI is necessary.
When entering a network-path reference into a browser’s address bar, no such base URI can be established with the first three ways, so the fourth way, 5.1.4. Default Base URI, applies:
If none of the conditions described above apply, then the base URI is defined by the context of the application. As this definition is necessarily application-dependent, failing to define a base URI by using one of the other methods may result in the same content being interpreted differently by different types of applications.
In other words, it’s up to each browser.
If a browser would only support http
and https
, it would likely choose the same scheme that gets used when users enter something like "www.example.com", so probably http
(see Suffix Reference). But many browsers support more schemes.
For example, on my system, requesting //example.com/test
resolves to a URI using the file
scheme: file:////example.com/test
(Firefox), file:///example.com/test
(Chromium).