ASP.NET and XHTML
An MSDN article ASP.NET and XHTML talks about conformance of server controls with XHTML, markup validation, changes to rendering logic between HTML and XHTML, changing page MIME type, and other interesting points.
One thing that I still can’t make peace with is that markup can be rendered in one of three modes:
- Legacy (which is similar to how markup was rendered in previous versions of ASP.NET)
- Transitional (XHTML 1.0 Transitional)
- Strict (XHTML 1.1)
This brings me to the same point: where do HTML 4.01 Strict, HTML 4.01 Transitional and XHTML 1.0 Strict fit in?
Obviously, what DOCTYPE is declared in markup is of little meaning to server controls, and I assume they rely on the
<xhtmlConformance> section to figure out how to render themselves. If I configure XHTML conformance to a strict mode, which xxxxx Strict am I getting? In other words, I want HTML 4.01 Strict, will the output be coerced to XHML 1.1 Strict? That’d be wild!
I guess I need to put together some test cases and see for myself. So far I just don’t get it.