A while ago I had to make certain that a CMS driven site built in .Net met some validation criteria.Â Specifically the XHTML markup.Â Running it by the W3C validator service, the markup always failed.
I fixed the obvious within the web.config.Â For example, the following is needed to force the application to render XHTML:
<configuration> ... <system.web> ... <xhtmlConformance mode="Strict" /> ... </system.web> ... </configuration>
If I painfully cut and pasted the HTML into the Validatorâ€™s form field, it passed.Â The problem is, is that the service is not recognised by the Web server, and so a helper file in the application is required.
In your web root, create a App_Browsers directory.Â Within this directory create a file called w3c.browser.Â Paste the following contents into the file:
You should now be able to pass the page by URL: