Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > What exactly sets IE6 into quirks mode?

What exactly sets IE6 into quirks mode?
Thread Tools
Mac Elite
Join Date: Apr 2003
Location: SoCal
Status: Offline
Reply With Quote
Feb 2, 2004, 09:50 PM
 
I've read that putting an XML declaration at the start of a document will trip IE6 into quirks mode, and I've read that a strict DTD will set it into standards mode, but what happens when those are combined? For example, my website currently has the following in its head:

Code:
<?xml version="1.0"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">
(I'm not sure if the html tag matters, but I added it in just in case)
     
Grizzled Veteran
Join Date: Jun 2001
Location: Melbourne, Australia
Status: Offline
Reply With Quote
Feb 2, 2004, 09:56 PM
 
Originally posted by Sage:
I've read that putting an XML declaration at the start of a document will trip IE6 into quirks mode, and I've read that a strict DTD will set it into standards mode, but what happens when those are combined? For example, my website currently has the following in its head:

Code:
<?xml version="1.0"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">
(I'm not sure if the html tag matters, but I added it in just in case)
I'm pretty sure the XML tag overrides the doctype in this instance and sets IE all giddy and non-compliant.
Computer thez nohhh...
     
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status: Offline
Reply With Quote
Feb 2, 2004, 09:56 PM
 
if you use both, yer in quirks mode.
"Have sharp knives. Be creative. Cook to music" ~ maxelson
     
Sage  (op)
Mac Elite
Join Date: Apr 2003
Location: SoCal
Status: Offline
Reply With Quote
Feb 3, 2004, 12:03 AM
 
Okay, thanks!
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:56 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2