Supertext.ch is valid XHTML 1.0 Strict

Valid XHTML 1.0 Strict

I’ve always put some effort into making our homepage valid XHTML 1.0 Strict, but there was always the issue with ASP.NET not rendering the page correctly when the W3C validator visited the page. The first error message you get is:

Line 9, Column 11: there is no attribute “name”.

<form name="aspnetForm" method="post"
action="Default.aspx" id="aspnetForm">

The issue is explained here.

One workaround is to just copy&paste the source from a browser into the validation or as explained in the link above to create a browser capabilities (call it w3cvalidator.browser) file and copy it into the \App_Browsers directory of your ASP.NET project. Or into the .NET installation folder (this way all projects automatically work with the W3C validator. The directory is:

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\Browsers

Unfortunately that did not do the trick for me. It only started working after I recompiled the server settings:

c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regbrowsers.exe -i

I’ve had that problem before, when I had to update the CSS MenuAdapter.

Yes, I know, there are still some XHTML issues with the blog, but we are working on those too.




Ähnliche Beiträge


Leave a Reply

Your email address will not be published. Required fields are marked *



*