Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-12-17 11:16:11

inkywillow
Member
From: France
Registered: 2009-12-22
Posts: 37

Help! Img tag problem

Txp has started removing the trailing slash from img tags???

Any ideas?


The Design Works – Freelance website designer

Offline

#2 2010-12-17 12:12:41

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Help! Img tag problem

inkywillow wrote:

Txp has started removing the trailing slash from img tags???

What do you mean? For what code, in which context, where and when? Are you referring to Textile markup, some TXP tags or what? The paths or self-closing tags?

Offline

#3 2010-12-17 13:08:47

inkywillow
Member
From: France
Registered: 2009-12-22
Posts: 37

Re: Help! Img tag problem

Sorry it looks as it might be a firefox/firebug bug. Great, that’s 2 hours of might life I won’t be getting back!

Anyhoo I had the following code in a txp form:

<img src="<txp:site_url/>images/1.gif" width="220" height="1" alt="divider" />

But I was getting this output in both the Firebug window and my local html validation tool:

<img width="220" height="1" alt="divider" src="http://192.168.1.72:8888/gz/images/1.gif">

Note that the trailing back slash is missing.

However, when I view source in either FF or safari the back slash reappears

I need a new job…


The Design Works – Freelance website designer

Offline

Board footer

Powered by FluxBB