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

Pirkka Rannikko bircha at gmail.com
Wed Nov 22 08:08:28 CET 2006


Hi!

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?

2.
Another thing is about the macina_searchbox plugin for Indexed Search.
Acording to the documentation of the plugin this has to be defined in
the template:

subparts.searchbox {
   pidSearchpage = 36 }

It marks the page where the Search plugin is placed. The problem is
that this outputs an action atribute for the Search Box form element
like this:

action="index.php?id=36&L=0"

which ofcourse isn't valid because the & character should be marked &amp;

Is there a way to correct this? I've studied the plugin's files but
haven't come up with anything useful.

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?

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



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