使用 W3C 验证受密码保护的站点的标记
我有一个在线应用程序,我想根据 W3C 验证器验证 HTML 标记。
问题是用户需要先登录才能访问它们。
我该如何验证这些页面?
I have an online app that I am wanting to validate the HTML markup of against the W3C validator.
Problem is users need to log in first to access them.
How do I go about validating these pages?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
假设您指的是标记验证,请自行登录,转到所需的页面,查看源代码,然后使用 直接输入 选项。
Assuming you mean markup validation, log in yourself, go to the page you want, view source, and use the direct input option.
我假设您指的是 w3 验证器服务。您可以将 html 内容复制粘贴到验证器中或将 html 保存到文件中并上传。如果您有 Firefox Web 开发人员扩展,它会提供“验证本地 HTML”选项。
I assume you mean w3 validator service. You can copy paste the html contents into the validator or save the html into a file and upload it. If you have Firefox Web developer extension, it provides a 'validate local HTML' option.
OmniValidator 适用于 Firefox:
OmniValidator for Firefox:
使用此 html 验证器扩展。或者通过 Ctrl-U,复制粘贴到 w3c 页面。
With this html validator extension. Or by Ctrl-U, copy-paste into the w3c page.
您必须在您的服务器上运行他们提供的服务:
http://validator.w3.org/ docs/install.html
这就是我们所做的,效果很好。
我认为最好的做法是在开发时而不是在生产时验证您的网站源...就像运行单元测试一样对待这。您也不应该让标记错误上线。
You have to run the service they provide on your server:
http://validator.w3.org/docs/install.html
Thats what we've done, works great.
I think it's best practice to be validating your sites source when it's in development not when its in production... Treat this just like running unit tests. You shouldn't have markup errors go live either.