HTML Tidy 正在删除 DOC 类型声明

发布于 2024-09-07 18:53:28 字数 179 浏览 1 评论 0原文

我随机选择了一些网站的源代码,例如 www.nypost.com、facebook.com、www.bigpond.com。当我提供这三个 html 页面作为 tidy 的输入(带有 -m 选项的命令行)时,我注意到它删除了 DOC 类型声明并修改了源代码。

任何人都可以指定为什么会发生这样的情况,这是 Tidy 中的错误吗?

I had picked source code of some sites ramdomly like www.nypost.com, facebook.com , www.bigpond.com. When i had provided these three htmlpages as input to tidy (command line with -m option), what i had noticed is that its removing the DOC Type declaration and modifying the source code.

Can anyone specify why its happening like that, is it a bug in Tidy or so.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文