Browser support for URLs beginning with double slash

后端 未结 2 808
执笔经年
执笔经年 2020-11-29 02:27

I\'ve recently seen a few links used without a protocol. It didn\'t seem too difficult to understand - I think it\'s a great idea and pretty intuitive.

For those of

2条回答
  •  不知归路
    2020-11-29 02:52

    This behavior was part of RFC 1808 (Section 4) which is about 16 years old, so every major browser should (and does) support this.

    Sadly, there's a bug with IE7 and -8 that will make them download the resources twice if a protocol-relative URL is used on a link or @import - which shouldn't be a big problem, but is ugly and should be kept in mind.

提交回复
热议问题