Lately I saw working code-blocks like this:
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
And according to RFC 2396 (URI Syntax) and RFC 2616 (HTTP 1.1) these URI starting with two slashes are valid, but unfortunately the RFCs don’t really explain them.
Can anyone point me to a resource which explains how browsers will/should/do process these URIs?
The resource you’re looking for is the RFC 3986.
See Section 4.2 and Section 5.4. Quoting from the latter:
This means that when the base URI is
http://a/b/c/d;p?qand you use//g, the relative reference is transformed tohttp://g.