Doc type question

All style (template, theme and imageset) related questions for the new release; advice, feedback here please.
Post Reply
User avatar
just_a_testing
Registered User
Posts: 24
Joined: Fri Sep 19, 2003 10:22 am
Contact:

Doc type question

Post by just_a_testing »

I noticed that phpbb (here) as it as

Code: Select all

<!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" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15" />
<meta http-equiv="Content-Style-Type" content="text/css" />
And just wondering why its not like

Code: Select all

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xml:lang="en" lang="en" dir="ltr" xmlns="http://www.w3.org/1999/xhtml">
(mainly why aren't you guys using the ?xml part) - I have it in my site but it cause some strange problem with people that have a bad connection (I think) I know they recommend the use of <?xml in xhtml - but is there a work around or something I'm not getting? (sorry, I'm trying to learn more about the use of it and as to why I see so many sites not useing it though :? ), thanks.
Scripts | Main Site | Jak 2 | Designs | Projects | Media | Smilie pack <-
please and thanks can do miracles

User avatar
Arty
Former Team Member
Posts: 985
Joined: Wed Mar 06, 2002 2:36 pm
Location: Mars
Contact:

Re: Doc type question

Post by Arty »

Its a development forum. Nothing is final including templates. I'm sure when it will be final all templates will have correct code.

User avatar
SHS`
Registered User
Posts: 1628
Joined: Wed Jul 04, 2001 9:13 am
Location: The Boonies, Hong Kong
Contact:

Re: Doc type question

Post by SHS` »

The XML prolog is not the DTD, in full or part.

If one reads the spec, they'd have found that XHTML1 doesn't require it:

http://www.w3.org/TR/xhtml1/#C_1" target="_blank

However, if you are sending XHTML with it's correct MIME type or just as generic XML, then yes it should always have the processing instruction. But if you knew about MIME type issues, you'd have know about the requirement of the prolog anyway.
Jonathan “SHS`” Stanley • 史德信
phpBB™ 3.1.x, Bug/Security trackers
phpBB™ Bertie Bear 3.0 — prosilver Edition!Asking Questions The Smart Way

Post Reply