[thelist] Always use a DOCTYPE (was: Horizontal scrollbar in IE 6.0)

Peter-Paul Koch gassinaumasis at hotmail.com
Mon Feb 25 09:01:06 CST 2002



>Removing either the DOCTYPE (or the link to the DOCTYPE) means that the
>browser has no set of "rules" to adhere to when rendering the page.

Not entirely true: they render the page in 'quirks mode', and I personally
think this behaviour will continue in future browsers.

The problem with DOCTYPES in IE6 is not only that they influence the CSS,
but also that they may influence the JavaScript implementation. For
instance, sometimes the properties of document.body are reassigned to
document.documentElement when you use a doctype.

For this reason I don't use doctypes myself yet. I first want to study the
JavaScript consequences.

ppk

_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.com




More information about the thelist mailing list