[TYPO3-english] Img tag mapped/generated by TV not closing correctly
Christopher Torgalson
bedlamhotel at gmail.com
Sun Apr 5 03:07:55 CEST 2009
Hi,
<snip>
>> 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.
<snip>
Looking at your HTML, it seems that you're already using GIFBUILDER to
create the image (and therefore, unless you're just returning the url
to the image with the IMG_RESOURCE cObject you're already using the
IMAGE cObject).
In any case, you've shown us the output, but since this is not any
TYPO3 behaviour I've ever encountered, the only way anyone's going to
be able to help is if you show us the TS too.
--
Christopher Torgalson
http://www.typo3apprentice.com/
More information about the TYPO3-english
mailing list