[TYPO3-english] validation problem, space between attributes
amadeo Marketing & Design - Paul Garais
garais at amadeo-marketing.de
Tue Nov 5 17:25:57 CET 2013
Hi Katja,
try it with noTrimWrap:
40.noTrimWrap = | id="|"|
noTrimWrap doesn't remove the whitespaces. But you need the extra | to make it work.
Here you can find further examples: http://wiki.typo3.org/TSref/stdWrap#noTrimWrap
- Paul
Am 05.11.2013 17:06, schrieb Katja Lampela:
> Hi,
>
> The ext oxylabstdwrap creates nicely three attributes for all content
> elements (where it's activated): style, id and class.
>
> But with this ts I get validation error in HTML5 document:
>
> tt_content.stdWrap.outerWrap >
> tt_content.stdWrap.outerWrap.cObject = COA
> tt_content.stdWrap.outerWrap.cObject {
> 10 = TEXT
> 10.dataWrap = <div style="{field:tx_oxylabstdwrap_inlinestyle}"
> class="co-n{cObj:parentRecordNumber}
> 20 = TEXT
> 20.field = tx_oxylabstdwrap_class
> 20.required = 1
> 20.noTrimWrap = | ||
> 30 = TEXT
> 30.value = "
> 40 = TEXT
> 40.field = tx_oxylabstdwrap_id
> 40.wrap = id="|"
> 40.required = 1
> 50 = TEXT
> 50.value = >|</div>
> }
>
> The error is missing space between class and id. The generated html is something like:
> <div style="" class="co-n1"id="addthis">
>
> Any hint how I can add an empty space before id?
>
More information about the TYPO3-english
mailing list