doudong8713 2010-10-27 03: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-14 02:56
    关注

    Looks like it can't be done, then

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

报告相同问题?

悬赏问题

  • ¥23 (标签-bug|关键词-密码错误加密)
  • ¥66 比特币地址如何生成taproot地址
  • ¥20 数学建模数学建模需要
  • ¥15 关于#lua#的问题,请各位专家解答!
  • ¥15 什么设备可以研究OFDM的60GHz毫米波信道模型
  • ¥15 不知道是该怎么引用多个函数片段
  • ¥30 关于用python写支付宝扫码付异步通知收不到的问题
  • ¥15 隐藏系统界面pdf的打印、下载按钮
  • ¥15 基于pso参数优化的LightGBM分类模型
  • ¥15 安装Paddleocr时报错无法解决