3 ms·
Huh? Quirks mode is never going to change; by definition, it is to maintain backwards compatibility. If a webpage was coded back in 2000, we don't want to break
by zaatar 16y ago
Huh? Quirks mode is never going to change; by definition, it is to maintain backwards compatibility. If a webpage was coded back in 2000, we don't want to break those pages simply because a more modern version of the browser is available.
See: http://en.wikipedia.org/wiki/Quirks_mode#Overview http://en.wikipedia.org/wiki/Quirks_mode#Overview
If you want to check for a browser version, there are some best practices around it. This should help: http://blogs.msdn.com/ie/archive/2009/03/12/site-compatibility-and-ie8.aspx http://blogs.msdn.com/ie/archive/2009/03/12/site-compatibili...
In summary, use object detection when possible, and if that does not work for you, use something similar to:
<!--[if lte IE 7]>
<link rel="stylesheet" type="text/css" src="ie.css" />
<![endif]-->