"//" should indicate a URL
skyb.us
skyb.us
See:
A "//" link in an HTTPS site would be required to be the same protocol anyway. It's only the spdy->http fallback that could prove to be a nuisance.
And you can't be sure. Here's why: if someone saves your page on their hard drive and you're using protocol-relative URLs, the implied "http" just became "file". (Which in fact may be a nice excuse for some clever hacks.)
Test it yourself! Save the following snippet to your computer and see how your browser resolves the URL:
<!DOCTYPE html>
<title>Testing 1 2 3</title>
<p><a href="//google.com/">Linky</a></p>I'm saying that those who need to worry about such things should and the rest of us should not. Nothing more and nothing less.
http://dev.w3.org/html5/spec/Overview.html#the-base-element
And accordingly, adding `<base href="http://example.com/ >` to that test above seems to work well on modern browsers.
// has another meaning in XML XPath, a language for navigating XML documents. // selects nodes anywhere in a document. For example, //p would select all paragraphs in an XHTML page.
I don't have a copy of IE6 to test on at the moment, but what makes you think IE8 is required for relative protocols?
If that's the case, why bother with the // at all? Why not just assume, as most browsers already do, that there's an inferred http:// at the beginning of whatever the user types in the address bar?
(EDIT - I see that he's talking about how we would refer to URLs in things like print advertisements. Cute idea, but given the ubiquity of web addresses in mass media, and the time it takes for the public to learn anything new, it still sounds like a solution in search of a problem. The average American is still not sure how Twitter works, or what it means when they see a @name or a #tag.)
I don’t know why everybody is talking about the technical meaning of //coca-cola, as that’s kind of irrelevant. Us web developers will of course still be typing the full http://coca-cola, as we always have.
Interestingly, http://dk/ has a valid A record to 193.163.102.24 which curl will show is a 301 redirect, but you cannot load it in Chrome or Firefox. dk has MX records too (I remember an old story about someone who had the email address m@dk or similar), but I think generally having any records for the top level is frowned upon now.
Except for the vast majority of high volume sites that know how to balance traffic and don't show "fail whales" every couple days.
Visit google.com, yahoo.com, amazon.com, msn.com, etc, and watch your URL get fixed to correctly reflect the local hostname "www".
Even coca-cola.com. You can type it wrong as you always have, and they'll fix it for you to be "http://www.coca-cola.com/.
mirror: http://webcache.googleusercontent.com/search?q=cache:skyb.us...
http://bits.blogs.nytimes.com/2009/10/12/the-webs-inventor-r...
Plus `//` is already used as a protocol agnostic way of accessing resources in HTML.