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

Pirkka Rannikko bircha at gmail.com
Wed Nov 29 17:40:27 CET 2006


Hi and thanks for the advice! I set the imageTextSplit to 1 and it did
the job. What kind of info do you need about my Typo3 installation for
the link/header/link problem? The site is running in a web hotel so I
don't have a clue about the server.

Typo3 version is and runs as a 4.0 and we are using the Template
Auto-Parser plugin in a kind of a same way as in the Modern Template
Building tutorial.

Here is an example code that Typo outputs when using the header and
link together:

<!-- Header: [begin] -->
<div class="csc-header csc-header-n1"><a href="index.php?id=36" ><h1
class="csc-firstHeader"><a href="index.php?id=36"
>Archives</a></h1></a><img src="clear.gif" width="1" height="5"
border="0" class="spacer-gif" alt="" title="" /><br /></div>
<!-- Header: [end] -->

It doesn't seem to matter what type of layout I use on the header.

---------------------------------------------------
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


-- 
Pirkka Rannikko - Freelance Graphics and Web Design
http://www.bircha.com


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