[TYPO3-dev] Empty line at beginning of frontend output = validator fails

Jelle van Brenk jelle at framed.nl
Tue Jun 2 14:25:41 CEST 2009


Hi Susanne,

I can second Tyler's idea, we had the same problem just a week ago with 
an XML feed not validating because of an empty first line.

This line was added by a php file with an empty line after the ?>

Regards,

Jelle van Brenk

Tyler Kraft schreef:
> Hi Susanne,
> 
> I could be wrong, but I think I remember that happening to me. I think 
> it was because there is an empty line after the closing ?> in a php 
> script that I was using.
> 
> hth
> 
> Susanne Moog wrote:
>> Hey Steffen,
>>
>> Steffen Müller schrieb:
>>> Hi.
>>>
>>> On 01.06.2009 19:37 Susanne Moog wrote:
>>>> When trying to validate a page I get an error because the xml
>>>> declaration is not the first line but the second (the first one is 
>>>> empty).
>>>>
>>>
>>> it's an IE quirksmode bug workaround.
>>>
>>> use config.doctypeSwitch = 1
>>
>> that just switches the doctype declaration and the xml prologue. In my 
>> version they are in the correct order but the first line is empty like:
>>
>> "
>>
>> <?xml ...>
>> <! DOCTYPE ...>
>> "
>>
>> That doesn't validate because of the empty line. When I'm back at home 
>> this evening I'll have to investigate where that line comes from.
>>
>> Thanks for your help.
>>
>> Susanne




More information about the TYPO3-dev mailing list