doudong8713 2010-10-26 19:44
浏览 45
已采纳

在加载时自动验证页面(使用W3C验证器)

I am developing a web site whose HTML can vary quite a lot depending on user inputs (user input on page 1 decides which sections of page 2 are shown, etc).

Naturally, I would like to ensure that the HTML is valid, but there are a lot of permutations.

I was wondering if anyone has a code snippet which I could include (in debug mode) in my standard page footer template which would validate the page. That ought to help me catch a lot during development and unit testing.

The catch is that I am developing using NetBeans and Xampp, so my URL is on http://localhost which is not something I can feed to "validate by URL" ...


The following will not work on http://localhost

  • W3C "validate by URL"
  • Web Developer for FireFox
  • Total Validator for FireFox
  • 写回答

2条回答 默认 最新

  • duangan4070 2011-01-13 18:56
    关注

    Looks like it can't be done, then

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)
编辑
预览

报告相同问题?

手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部