HTML5的
WHATWG document表示rel属性必须包含以空格分隔的值,然后给出一个允许值的表。
The attribue’s value must be a set of space-separated tokens. The 07001…
链接元素的允许关键字列表不包括快捷方式,但它包括图标。所以我在看着这个众所周知的标签
<link rel="shortcut icon" href="/favicon.ico" />
解决方法
从同一WHATWG文档:
For historical reasons,the icon keyword may be preceded by the keyword “shortcut”. If the “shortcut” keyword is present,it must be come immediately before the icon keyword and the two keywords must be separated by only a single U+0020 SPACE character.