[TYPO3-english] Img tag mapped/generated by TV not closing correctly

Wolver Ave. wolveravenue at gmail.com
Sat Apr 4 22:24:18 CEST 2009


Thanx for the answers, I still haven't been able to solve it, here are
some comments to clarify.

> If the code in your message is an exact copy, then the problem originates with the fact that there's no space between the closing quote in the border attribute ant the beginning of the alt attribute (by the way, the mere existence of a border attribute in the image can cause your page to fail validation if you're using  xhtml strict). Fix that problem, and I'll bet you fix the other problem too.

Actually the exact code copied straight from the source is:
<img src="typo3temp/GB/64341c794f.png" width="790" height="291"
border="0"  alt="" title="""/>
The difference is that there are two spaces before the alt attribute.
I think this is beside the point anyway since it seems I don't have
any direct control over the code inside the img tag, in other words I
can't write the code inside it.

> Using the IMAGE cObject to generate the img element should avoid the problem altogether.

An alternative way to generate the tag may possibly solve another
annoying thing - the image files are not used directly, but it seems
like the TYPO3 generates a temporary picture file instead. I will
check it out, it may be a solution to my initial problem also.

> I must tell that TV does not generate any tags. TYPO3 does. TV is a way to map certain blocks of the template to content or TS objects.
> I think if you make your HTML template correctly, there should be no problems with tags. Usually all such problems appear due to mistakes in the HTML template.

I'm not sure I totally agree with you there, about generating correct
tags. What I think I have to do is to find a way to control what TYPO3
generate inside the img tag, because as long as the <img /> part is
there, according to my tests it doesn't matter whats between the start
and the closing.
The template file is correct, validated and all.

If it's any help the website is here: http://wolveravenue.com/ - have
a look in the code, line 42


More information about the TYPO3-english mailing list