Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果属性值周围缺少引号,我是否可以设置任何选项来整齐地向我显示警告?目前我运行整洁如下:
tidy -xml -e test.html
内test.html:
test.html
<p id=foobar></p>
没有警告,但实际上 XML 需要引号。我不需要更正后的输出。我想使用-e选项。
-e
2009 年 3 月 25 日发布的适用于 Windows 的 HTML Tidy
Tidy 不会抛出关于缺少引号的属性的警告,因为没有空格的属性值在 HTML 中有效(尽管在 XML 中无效,正如您所指出的那样)。我已经检查了此处和此处的文档,不幸的是,我没有看到任何对配置选项或设置的引用,它们会产生您想要的结果。