[Typo3-dev] Doctype - XML Prolog
Gordon Mickel
g.mickel at mkb.net
Wed Feb 18 21:36:08 CET 2004
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...
greetz
gordon
ben van 't ende [netcreators] wrote:
> Gordon Mickel wrote:
>
>> Hi
>>
>> I have a small feature request:
>>
>> It would be great if there was an option for leaving the xml prolog
>> (<?xml version="1.0" encoding="UTF-8" ?>) out of the document header.
>>
>> Unfortunately the prolog causes problems with many browsers, the most
>> severe possibly being that it forces IE into it's quirky box model
>> rendering mode. You can find an exact list of the browser compliancy
>> issues here:
>>
>> http://www.webstandards.org/learn/reference/prolog_problems.html
>>
>> Luckily the xml prolog is only recommended and not required by the W3C
>> (see http://tantek.com/XHTML/Test/minimal.html#withorwithoutxmlprolog
>> ) so leaving it out still leaves our html pages fully specs-compliant.
>
>
> Hi Gordon,
>
> This fix is available in the new, yet to be released, version. I am a
> bit confused now myself. The first doesn't cause the quirks mode. Anyway
> by setting the config.doctypeSwitch you can reverse the lines. I hope
> this will help.
>
>> <!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">
>>>
>>> the validator service doesn't validate this. it should be like this:
>>>
>>> <?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">
>
>
> Kasper wrote:
>
>> I have fixed this now.
>>
>> If people want this reversed version they can set
>> "config.doctypeSwitch=1"
>
>
> gRTz
>
> ben
More information about the TYPO3-dev
mailing list