[thelist] DOCTYPE Quirk in IE6
MRC
webmaster at equilon-mrc.com
Mon Mar 4 13:49:00 CST 2002
Gregory,
> I have tried unsuccessfully to get my menu-driven DHTML/Javascript code to
> work in IE6. It does not work if I have as my first line of code:
[...]
That's a pretty broad explanation of your problem, which makes it near
impossible to offer anything more than a very broad response. What doesn't
work? Do you get script errors? Are things appearing in places where you
don't expect? Do you have a URL for people to view?
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html401/loose.dtd">
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> "http://www.w3.org/TR/html4/strict.dtd">
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Strict file://EN>
The short answer is that all of these doctype declarations trigger IE
6's so-called "standards-compliant" mode [1]...
> This DOES work. Why?
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
...but this one doesn't.
James Aylard
1.
http://msdn.microsoft.com/library/en-us/dnie60/html/cssenhancements.asp#csse
nhancements_topic2
More information about the thelist
mailing list