[TYPO3-content-rendering] Three question about Typo3 and non-valid markup

Ernesto Baschny [cron IT] ernst at cron-it.de
Fri Nov 24 10:12:47 CET 2006


Pirkka Rannikko schrieb:

> I was pointed in the English list that I should direct my questions
> about valid XHTML mark-up and Typo3  to here.
> 
> 1.
> I have a Typo3 (4.0) installation with XHTML 1.0 Transitional Doctype
> but the Text with Image content element produces incorrect markup:
> 
> <div class="csc-textpic csc-textpic-intext-left">
> <div class="csc-textpic-imagewrap" style="width:180px;">
> <dl class="csc-textpic-image csc-textpic-firstcol csc-textpic-lastcol"
> style="width:180px;">
> <dt>
> <a href="index.php?id=866" target="_self" >
> <img src="typo3temp/pics/fff47cdef8.jpg" width="180" height="139"
> border="0" alt="Samsung SGH-P200 mobile phone" />
> </a>
> </dt>
> </dl>
> <dd class="csc-textpic-caption">
> </dd>
> </div>
> ...
> 
> The dl element should contain the dd element. Is this corrected in
> Typo 4.0.1 or 4.0.2 or does this problem occur only on my installation
> (http://www.avecmobile.com)? What should I do?

That is really a bug, but this should only happen if you set
captionSplit to 0 (deprecated) or using the new imageTextSplit setting
and set this to "0" (default is "1").

> 3.
> I have also noticed that Typo3 will produce non-valid markup when
> header with a link is added to a content element. The output markup
> will be something like this:
> 
> <a href=""><h2><a href="">Header</a></h2></a>
> 
> How can this be corrected?

I have never seen this. Here the link is just generated inside the "h2",
as it is specified in the lib.stdheader.10.10.setCurrent.typolink
setting. I wouldn't know where the other "<a>" comes from. Can you give
us more details on your setup and configuration?

Cheers,
Ernesto



More information about the TYPO3-project-content-rendering mailing list