简体   繁体   English

此时元素符号上不允许使用属性宽度和高度

[英]Attribute width and height not allowed on element symbol at this point

Should width and height attribute not be used on SVG's symbol ? SVG 的symbol不应该使用widthheight属性吗?

These are being used in MDN examplehttps://developer.mozilla.org/en-US/docs/Web/SVG/Element/symbol这些正在 MDN 示例中使用https://developer.mozilla.org/en-US/docs/Web/SVG/Element/symbol

How to solve this validation error?如何解决此验证错误?

在此处输入图片说明

Just linking back the the GitHub issue https://github.com/validator/validator/issues/930 and response for anyone that comes across this:只需链接回 GitHub 问题https://github.com/validator/validator/issues/930并回复遇到此问题的任何人:

SVG 1.1 https://www.w3.org/TR/SVG11/struct.html#SymbolElement didn't allow width and height for the symbol element. SVG 1.1 https://www.w3.org/TR/SVG11/struct.html#SymbolElement不允许符号元素的宽度和高度。 But apparently the SVG2 spec does https://www.w3.org/TR/SVG2/struct.html#SymbolElement .但显然 SVG2 规范确实https://www.w3.org/TR/SVG2/struct.html#SymbolElement

So I'll update the checker to allow those.所以我会更新检查器以允许这些。

Till it is fixed, you can ignore it from the commandline directly with a regex or a series of reges with the filterfile paramater https://github.com/validator/validator#--filterfile-filename在修复之前,您可以直接使用正则表达式或一系列使用过滤器文件参数https://github.com/validator/validator#--filterfile-filename的正则从命令行忽略它

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM