[Typo3-dev] Doctype - XML Prolog

ben van 't ende [netcreators] ben at netcreators.nl
Wed Feb 18 21:57:20 CET 2004


Gordon Mickel wrote:

> Hi Ben
> 
> now I'm a bit confused too :)
> 
> I checked out the newest CVS version today and noticed the new 
> config.doctypeSwitch setting (and the title tag for images, yay!!).
> 
> It was my understanding, that the xml line has to be completely left out 
> of the document to solve said problems.
> 
> Is there any point in just switching the DOCTYPE Declaration and XML 
> prolog around? Most web developers just leave it out completely. I could 
> be wrong here but I think the XML specs specify that the Prolog is 
> optional, but if it's in there that it should be the before all other 
> elements...

Hi Gordon,

Yes optional it is. It solved my problem when ie6 started behaving like 
ie5. You know the box model hassle thing. This got ie6 out of quirks 
mode for me:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?xml version="1.0" encoding="iso-8859-1"?>
<html xmlns="http://www.w3.org/1999/xhtml">

gRtz

ben
-- 
netcreators :: creation and innovation
www.netcreators.nl - www.typo3.nl

"If you have received a precise and workable reply to your question, you 
are obligated to give something back...please log onto typo3.org and 
create an FAQ or HOWTO from the thread (just open the thread and click 
the "make FAQ or HOWTO" link), so everyone else can benefit from the 
knowledge that you just gained!"




More information about the TYPO3-dev mailing list