Explanation for people who don’t know: this syntax means to Firefox : “use the same protocol than the one the page uses”. So if the page is https and the link (or image) is //mywebsite.com/myimage.png Firefox will try to download it this way: https://mywebsite.com/myimage.png
(Edit my question if I’m wrong I don’t want to say lies).
I’m wondering: is this a standard and all other Webbrowsers know it or if it’s just something recent?
I’m sorry but I can’t find the right words when googling for it (“convention” – “https” – “//” and so on don’t give good results)
Thank you!
RFC3986, which defines the URI (Uniform Resource Identifier), which is the superset of URLs and URNs, is ambiguous. Appendix A, which defines the syntax, does not show the scheme as optional, but section 5.3, which covers reconstructing a URI, does show the scheme as optional.
That said, it’s better for security purposes if you are explicit as to which scheme is used, to prevent the possibility of sensitive information being accidentally sent in the clear.