Possible Duplicate:
Is it valid to replace with // in a <script src=“…”>?
Absolute URLs omitting the protocol (scheme) in order to preserve the one of the current page
I can't find anything about this in Google - it's hard to find something about "//" :)
Anyway please tell, which browsers support "//" instead of "http://" and "https://"? I'd like to use this to include images, script, styles etc. But is it safe? Is there a browser that doesn't support this and I need provide a protocol?
All browsers support it, it's safe - RFC 3986 Section 4.2 (or view txt version of RFC3986 and go to 4.2) specifies use of the protocal relative url and it is utilised in the HTML5 Boilerplate where there have been no reported issues with the technique. If there was a problem with using this cross-browser, the community would have picked it up by now.
Edit: Even WikiMedia use it
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With