Old 08-05-2006, 08:24   #1 (permalink)
mk2phil
Registered User
 
Join Date: Aug 2004
Posts: 96
XML header is killing my DTD

I have the following code at the top of the page:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns:fo="http://www.w3.org/1999/XSL/Format" lang="en" xml:lang="en">

It has to be done like this becuase of the way the developers have coded it. Does this cause IE6 to operate in Quirks mode - i.e. the same way IE5/5.5 would render the page?

Thanks
  Reply With Quote
Old 08-05-2006, 08:34   #2 (permalink)
smallbeer
I Ain't Losing Any Sleep™
 
Join Date: Apr 2003
Posts: 5,206
yes
  Reply With Quote
Old 08-05-2006, 09:23   #3 (permalink)
finbarr
who the fuck am i?
 
finbarr's Avatar
 
Join Date: Apr 2005
Location: london
Posts: 2,690
Send a message via MSN to finbarr Send a message via Skype™ to finbarr
AFAIK anything put before the dtd makes ie operate in quirks mode
  Reply With Quote
Old 08-05-2006, 10:00   #4 (permalink)
mk2phil
Registered User
 
Join Date: Aug 2004
Posts: 96
cheers guys. F/F is 100% perfect, but even using the tantek hack isn't fixing the problem in IE6. Stumped now.
  Reply With Quote
Old 08-05-2006, 10:08   #5 (permalink)
smallbeer
I Ain't Losing Any Sleep™
 
Join Date: Apr 2003
Posts: 5,206
link?
  Reply With Quote
Old 08-05-2006, 10:11   #6 (permalink)
smallbeer
I Ain't Losing Any Sleep™
 
Join Date: Apr 2003
Posts: 5,206
and you might want to ask your developers why it has to be done this way.
  Reply With Quote
Old 08-05-2006, 11:04   #7 (permalink)
weldo
now with added beard
 
weldo's Avatar
 
Join Date: Mar 2004
Location: Liverpool
Posts: 5,631
Quote:
Originally Posted by finbarr
AFAIK
??? go on then - enlighten me ....
__________________
fuck signatures
  Reply With Quote
Old 08-05-2006, 11:07   #8 (permalink)
cam
vague™
 
cam's Avatar
 
Join Date: Mar 2004
Location: Glasgow
Posts: 5,595
as far as i know
__________________
  Reply With Quote
Old 08-05-2006, 11:39   #9 (permalink)
finbarr
who the fuck am i?
 
finbarr's Avatar
 
Join Date: Apr 2005
Location: london
Posts: 2,690
Send a message via MSN to finbarr Send a message via Skype™ to finbarr
Quote:
Originally Posted by weldo
??? go on then - enlighten me ....
haha... my thoughts exactly when I first saw it posted
  Reply With Quote
Old 08-05-2006, 11:56   #10 (permalink)
weldo
now with added beard
 
weldo's Avatar
 
Join Date: Mar 2004
Location: Liverpool
Posts: 5,631
ahh ...
__________________
fuck signatures
  Reply With Quote
Old 08-05-2006, 12:10   #11 (permalink)
mk2phil
Registered User
 
Join Date: Aug 2004
Posts: 96
Is it only IE that reverts to quirks mode when you pre-empt the DTD or does mozilla also do this?
  Reply With Quote
Old 08-05-2006, 12:29   #12 (permalink)
finbarr
who the fuck am i?
 
finbarr's Avatar
 
Join Date: Apr 2005
Location: london
Posts: 2,690
Send a message via MSN to finbarr Send a message via Skype™ to finbarr
Quote:
Originally Posted by mk2phil
Is it only IE that reverts to quirks mode when you pre-empt the DTD or does mozilla also do this?
only ie afaik
  Reply With Quote
Old 08-05-2006, 12:31   #13 (permalink)
smallbeer
I Ain't Losing Any Sleep™
 
Join Date: Apr 2003
Posts: 5,206
quick answer, no.

longer answer would go into the fact that different browsers have different modes and different "sniffers" for entering those modes.

http://developer.mozilla.org/en/docs...7s_Quirks_Mode
http://msdn.microsoft.com/workshop/a...compatmode.asp
http://www.opera.com/docs/specs/doctype/

You'll only ever really deal with IE's.
  Reply With Quote
Old 08-05-2006, 12:34   #14 (permalink)
finbarr
who the fuck am i?
 
finbarr's Avatar
 
Join Date: Apr 2005
Location: london
Posts: 2,690
Send a message via MSN to finbarr Send a message via Skype™ to finbarr
"Content sent as text/xml or other XML or XHTML MIME types is always handled in strict mode"
  Reply With Quote
Old 08-05-2006, 12:36   #15 (permalink)
smallbeer
I Ain't Losing Any Sleep™
 
Join Date: Apr 2003
Posts: 5,206
is that in reply to me?
  Reply With Quote
Old 08-05-2006, 12:44   #16 (permalink)
finbarr
who the fuck am i?
 
finbarr's Avatar
 
Join Date: Apr 2005
Location: london
Posts: 2,690
Send a message via MSN to finbarr Send a message via Skype™ to finbarr
Quote:
Originally Posted by smallbeer
is that in reply to me?
no...

"Is it only IE that reverts to quirks mode when you pre-empt the DTD or does mozilla also do this?"

in reply to that
  Reply With Quote
Old 08-05-2006, 12:51   #17 (permalink)
smallbeer
I Ain't Losing Any Sleep™
 
Join Date: Apr 2003
Posts: 5,206
right. and how does that answer his question?
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8