是否应在SVG的width
上不使用height
和symbol
属性?
这些在MDN示例https://developer.mozilla.org/en-US/docs/Web/SVG/Element/symbol中使用
如何解决此验证错误?
是否应在SVG的width
上不使用height
和symbol
属性?
这些在MDN示例https://developer.mozilla.org/en-US/docs/Web/SVG/Element/symbol中使用
如何解决此验证错误?
只需将GitHub问题https://github.com/validator/validator/issues/930链接回去,并对遇到此问题的任何人进行回复:
SVG 1.1 https://www.w3.org/TR/SVG11/struct.html#SymbolElement没有 允许符号元素的宽度和高度。但显然是SVG2 规范确实https://www.w3.org/TR/SVG2/struct.html#SymbolElement。
因此,我将更新检查器以允许使用这些检查器。
直到它被修复,您可以使用正则表达式直接在命令行中忽略它,或者使用filterfile参数https://github.com/validator/validator#--filterfile-filename进行一系列的修订