[Typo3-dev] Doctype - XML Prolog
ben van 't ende [netcreators]
ben at netcreators.nl
Wed Feb 18 20:52:57 CET 2004
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
--
netcreators :: creation and innovation
www.netcreators.nl - www.typo3.nl
More information about the TYPO3-dev
mailing list