[Typo3-dev] Doctype - XML Prolog

Gordon Mickel g.mickel at mkb.net
Wed Feb 18 22:15:16 CET 2004


ben van 't ende [netcreators] wrote:

> 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

hi ben

yes i know that hassle well, unfortunately ;) Opera7 has the same problem...

Yes that does solve the problem. My point, though, is that imho there is 
no point in putting the xml version line anywhere if it isn't the first 
thing in the document, so we might as well leave it out completely.
As I said before, maybe I'm wrong here and someone can point me to an 
alternative URL that says something about putting the xml line AFTER the 
DOCTYPE declaration.

Quirky greetz
Gordon





More information about the TYPO3-dev mailing list