3 ms·
Technically, not all of them do; "<schema>:" is the common prefix, and everything else depends on the URL type. See: http://www.ietf.org/rfc/rfc1738.txt http:/
by makecheck 17y ago
Technically, not all of them do; "<schema>:" is the common prefix, and everything else depends on the URL type.
See: http://www.ietf.org/rfc/rfc1738.txt http://www.ietf.org/rfc/rfc1738.txt
In particular, section 3.1, 'The scheme specific data start with a double slash "//" to indicate that it complies with the common Internet scheme syntax.'. So it is used by URLs that require any of this information: "//<user>:<password>@<host>:<port>/<url-path>".
- crux 17y agoI should note that both Safari and Firefox understand the URL 'http:news.ycombinator.com/item?id=796434' as well.
- there 17y agobut only in the url bar; both turn a url like that into a relative url when used in an img src, for example.
- sh1mmer 17y agoAn example of this is mailto:foo@bar.com this is still totally valid, but email addresses don't use the // notation for nodes.