Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2007-04-12 05:11:23
- michael_climactic
- Member
- Registered: 2007-01-19
- Posts: 10
default Texpattern theme trigger standards or Quirks mode?
Hi Everyone,
Does the DTD that comes in the out-of-the-box Textpattern page/theme trigger standards or quirks mode in IE6?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
Thank you for setting me straight. I’ve looked at the doctype comparison charts but am not sure where that “html xmlns=…” line fits in.
Offline
Re: default Texpattern theme trigger standards or Quirks mode?
Quirks mode is triggered when a doctype isn’t present. xmlns
is the required namespace attribute.
Offline
#3 2007-04-12 15:32:32
- michael_climactic
- Member
- Registered: 2007-01-19
- Posts: 10
Re: default Texpattern theme trigger standards or Quirks mode?
Thanks for your reply. There are, actually, a series of doctype settings that trigger Quirks in IE6, e.g. an XHTML 1.0 Transitional doctype with an XML declaration. At least, so I’ve read:
http://hsivonen.iki.fi/doctype/
So then I am interpreting your post correctly as saying “The doctype declaration loaded into Textpattern at install triggers standards mode in IE6?”
Thanks again -M
Last edited by michael_climactic (2007-04-12 16:02:13)
Offline
Re: default Texpattern theme trigger standards or Quirks mode?
Yep – Textpattern’s doctype will not trigger quirks mode. For IE, if you place the XML prolog or comments before the doctype, you’ll trigger quirks mode (or if you lack a DTD). The XML prolog isn’t required for XHTML, so just go with a straight DTD.
You can customize your doctype too – just go to the Presentation tab. XHTML 1.1, 1.0 Strict, or even HTML doctypes can be used. For example:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="en-us" xml:lang="en-us" xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href="<txp:css format="url" />" media="screen, projection" rel="stylesheet" type="text/css" />
<title><txp:page_title /></title>
</head>
<body>
Note: Textpattern serves the content-type header via PHP, so you don’t need to set it with the meta tag. If you’re looking to serve application/xhtml+xml, check out the plugin and hack at textpattern.org.
Offline