I have been using Josh Twist’s XHTML validation module for a while and I have added a couple of small enhancements I have found useful:
- It works without internet access as I included the required DTDs as embedded resources. I usually have internet access when I’m using it, but it is a big problem if I don’t.
- It doesn’t validate ASP.NET trace output if it is present in the page. This is checked using the trace configuration section. I have not found a way to know if trace output is enabled in the current request.
- I have added an attribute called showErrorsOnly to the validatorModule element to avoid calling the Renderer.Render method if there isn’t any error. That way, if the page validates successfully no message is shown.
Download validator_binaries (42,78 KB)
Downlaod Validator_source code (44,04 KB)