Do protocol relative URLs match cross-platform?

I often use relative URIs //. Example:

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>

Mostly because of this post: Is it valid to replace http: // with // in <script src = "http: // ...". >?

However, the guy I work with in the project says that it doesn’t work on Mac (Chrome, Firefox and Safari) or iDevices.

Without a Mac or the specified devices, I can not check it, and it works fine on Windows. Can anyone confirm this?

+5
source share
1 answer

, Mac, , Mac RFC 3986 4.2 URL-.

, , - .

+4

All Articles