We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
url.protocol
1 parent 0858956 commit 8be1b66Copy full SHA for 8be1b66
doc/api/url.md
@@ -490,7 +490,7 @@ For instance, changing from `http` to `https` works:
490
const u = new URL('http://example.org');
491
u.protocol = 'https';
492
console.log(u.href);
493
-// https://example.org
+// https://example.org/
494
```
495
496
However, changing from `http` to a hypothetical `fish` protocol does not
@@ -500,7 +500,7 @@ because the new protocol is not special.
500
501
u.protocol = 'fish';
502
503
-// http://example.org
+// http://example.org/
504
505
506
Likewise, changing from a non-special protocol to a special protocol is also
0 commit comments