Ed Seehouse wrote:
> The XML prologue in your xhtml file (fist line) will force IE6 into
> quirks mode where it gives block elements the wrong width. IE6 will
> only go into standards rendering mode if the Doctype is the very
> first line of the page.
Correct. That's a genuine IE6 bug.
> I don't know it this affects IE7 or not, but IE6 is still the
> majority browser out there. For cross browser support you should
> lose the prologue.
1: the XML declaration won't affect IE7. It ignores it. Better not put
anything else up there though, unless one wants IE7 to revert to quirks
mode. Not that I think it'll hurt, but it shouldn't be necessary.
2: no need to take out the XML declaration in order to achieve cross
browser support. IE6 is buggy in both modes, but have, IMO, fewer
disturbing bugs in quirks mode - probably because it then becomes an
improved IE5+, with a longer history and with no major changes that
could be messed up. The box model differences are easy to "fix".
Conclusion: we have choices:
1: if one wants real cross-browser support today, then HTML4.01 is a
better choice than XHTML1.0 in most cases.
2: graceful, or disgraceful, degradation will always be a factor when
old browsers must be supported. That is, unless one designs for old
browsers - like IE6, in which case it is most often the new browsers
that get less attention and support.
3: one can deliberately keep IE6 in quirks mode, and learn how to work
around all problematic areas to the point where it doesn't matter which
mode IE6 is in. That's _my_ choice[1] in most cases, and it also allows
me to more or less forget about such issues as browser modes, and make
the most out of CSS support across browser-land.
regards
Georg
[1]http://www.gunlaug.no/contents/wd_additions_16.html
--
http://www.gunlaug.no
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/