开发者

Auto validating a page on load (using W3C validator)

开发者 https://www.devze.com 2023-01-21 08:21 出处:网络
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).

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 dev开发者_运维百科eloping 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


If your using Firefox, then try the Web Developer Toolbar. It has validation tools.

https://addons.mozilla.org/en-US/firefox/addon/60/


Looks like it can't be done, then

0

精彩评论

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