Tech Off Post

Single Post Permalink

View Thread: ASP.net 2.0 not XHTML 1.1 compliant?
  • Sven Groot

    Raindog wrote:
    Perhaps so, but when you link to the W3C validation service it falls into the category of a "not recognised" browser when it connects to your page, so it may render nicely in firefox but as soon as someone validates a page using a webform, it falls down because .net renders the name attribute. By removing it in the page pre_init, you cater for all browsers and it validates.

    You can create a .browser file that causes ASP.NET to recognize the validator. Or you can change the default so it doesn't use downlevel rendering for unrecognized browsers.