html - Absolute URLs omitting the protocol (scheme) in order to preserve the one of the current page -
i saw //somepage.com/resource
url format. example:
<img src="//remotesite.com/image1.jpg" />
the point of if current page (the page defining img
tag) using http
, request remote site made via http. if https - it's https. eliminates browser warnings of not encrypted pages.
my question - url format safe use browsers. , standard?
is url format safe use browsers.
i can't sure, should able test in different browsers.
and standard?
technically, called "network path reference" according rfc 3986. here scheme it:
relative-ref = relative-part [ "?" query ] [ "#" fragment ] relative-part = "//" authority path-abempty / path-absolute / path-noscheme / path-empty
there problem though, when used on <link>
or @import
, ie7 , ie8 download file.
here post written paul irish on subject:
Comments
Post a Comment