Monday, October 30, 2006

ASP.NET: Adaptive Rendering Model

If you are used to viewing ASP.NET pages on different browsers, you would noticed how some pages looked different on IE as opposed to say Firefox. Or as sometimes it happens, a page would look fine on IE but not on any other browser.

I originally had thought this is basically a screwup on IE being more lenient on some HTML standards, and thus are able to look just fine with the rendered HTML from the ASP.NET pages.

Apparently, that is not entirely true. Certainly not in the way I described at least.

I recently discovered that ASP.NET actually render HTML 4.0-compliant HTML for IE, and HTML 3.2-compliant HTML for other browsers. This is the main reason why there is such a difference between different browsers.

Read more about this from Scott Michell's article on the subject.

BTW, this behaviour is noted for ASP.NET 1.1. I have no clue if the same is true for ASP.NET 2.0

No comments: