【发布时间】:2014-02-10 22:23:27
【问题描述】:
插入指向网站图标的链接标签的正确方法是什么? 我尝试了以下方法,但 W3C Validator 报告 element "xhtml:link" undefined。
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml">
<title>De mægtige vikinger</title>
<defs>
<xhtml:link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
</defs>
</svg>
【问题讨论】:
-
@RobertLongson 我不相信 W3C 验证器是错误的,并且您链接到的答案不能回答我的问题。不过谢谢
-
请参阅 SVG 工作组规范中的 this GitHub issue。
标签: xml svg w3c-validation