开发者

HTML Tidy - no warning if quotes are missing

开发者 https://www.devze.com 2023-03-09 18:59 出处:网络
Is there any option I can setup to make tidy showing me warnings if quotes are missing around attri开发者_如何学Cbute values? At the moment I run tidy as follows:

Is there any option I can setup to make tidy showing me warnings if quotes are missing around attri开发者_如何学Cbute values? At the moment I run tidy as follows:

tidy -xml -e test.html

Within test.html:

<p id=foobar></p>

There's no warning but actually XML requires quotes. I don't need the corrected output. I want to use the -e Option.

HTML Tidy for Windows released on 25 March 2009


Tidy will not throw warnings about attributes missing quotes as attribute values without spaces are valid in HTML (although not in XML, as you point out). I've checked the documentation here and here and unfortunately, I don't see any references to configuration options or settings that would yield the results you want.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号