[TYPO3-dev] Single quotes to double quotes in form fields

Steffen Kamper info at sk-typo3.de
Thu Dec 9 13:30:55 CET 2010


Hi,

Am 09.12.2010 12:57, schrieb Morten Hagh:
> I have to output a radio field in some Javascript where I can't use double
> quotes because I will not post the value in the radio then (it seems).
> But if I in my PHP set the html as<input type='radio' name='name'
> value='something' />  and output it in my browser, it have all of a sudden
> got double quotes<input type="radio" name="name" value="something" />
>
>
>
> Is it TYPO3 that per auto gives form fields double quotes and can this be
> disable in the particular function ?
>

don't rely on sources from browser. Like FF there is some 
autocorrection, also tag completing if closing tag is missing.

Anyways you should write valid html, and this means usage of double 
quotes for attributes.

vg Steffen




More information about the TYPO3-dev mailing list