Re: document.write causes validation to fail

>   * If it isn't already done, link HTML Tidy (or integrate it into the
>     validator)

An aside here, which I hope will be of interest.

I use on offline validator, based on the W3 one. We run this validator
on HTTP PUTs before commiting them to a CVS repository. If the validator
fails the PUT, because the HTML is invalid (probably is if it comes from
some dodgy HTML editor) we then strip off any DTD information the editor
has provided, and run it through HTML tidy.

99% of the time this produces a valid HTML page, which passes the validator,
and looks similar to what the author intended!

So, I'd say that providing tidy (or even recommending it) as a means of
sorting out validation errors is a very good idea.

Cheers,

Simon.

Received on Thursday, 14 October 1999 14:28:48 UTC