[Typo3-dev] TYPO3 and XHTML

Sebastian Roth sebastian.roth at gmail.com
Mon May 9 11:56:14 CEST 2005


> Why doing a regexp replace instead of not generating the attribute at all?

Maybe we could abstract handling of those attributes by something like this?:

<img src="${source}" ${attribute('height',$height)} />

attribute would be a function, which checks the currently selected
doctype and returns the appropriate attribute string or something
empty.
This function needs to know about allowed (disallowed) attributes for
this doctype, too, so it's a little bit tricky imho. :)

Greetings,
Seb




More information about the TYPO3-dev mailing list