[TYPO3-english] Img tag mapped/generated by TV not closing correctly
Christopher Torgalson
bedlamhotel at gmail.com
Sat Apr 4 18:18:02 CEST 2009
Hi,
On Sat, Apr 4, 2009 at 8:57 AM, Wolver Ave. <wolveravenue at gmail.com> wrote:
> I have a problem with validating the xhtml, the problem is the closing
> part of the img tag which is "/> - it has a " instead of a blank
> space, and I don't know how to get rid of it. See the example at the
> bottom of my post. I'm using the following extensions: TV, DAM
> (media), and Highslide, but the latter don't have anything to do with
> that part of the site. The following piece of code resides inside a
> div tag which I've mapped with TV, so that I can place a picture
> inside it, so maybe it is a TV-based problem/bug? Anyone familiar with
> it, or know a solution?
> <img src="typo3temp/GB/cf8fa96dfb.png" width="790" height="291"
> border="0"alt="" title="""/>
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.
Using the IMAGE cObject to generate the img element should avoid the
problem altogether.
--
Christopher Torgalson
http://www.typo3apprentice.com/
More information about the TYPO3-english
mailing list