[UPHPU] Smarty's playing with my mind... and my end tags
Randy Moller
zoomerz at comcast.net
Sun May 13 13:25:04 MDT 2007
This looks suspiciously like a DTD issue (rather than a "Smarty" problem).
What DTD are you using? Xhtml? If so, my guess is that's the issue. As far
as I know, in a "strict" xhtml environment, the param tag doesn't have an
end tag, and the xhtml DTD may well be stripping it (not Smarty).
Randy Moller
-----Original Message-----
From: uphpu-bounces at uphpu.org [mailto:uphpu-bounces at uphpu.org] On Behalf Of
Alvaro Carrasco
Sent: Sunday, May 13, 2007 11:34 AM
To: Velda Christensen
Cc: UPHPU General Discussion
Subject: Re: [UPHPU] Smarty's playing with my mind... and my end tags
Velda Christensen wrote:
> Hey guys and Sheri,
>
> I just need to be pointed in the right direction. There has to be a
> good reason for this, but I'm not finding my answers in google or on
> smarty's site. Any idea why smarty would turn this:
>
> <object width="200" height="165">
> <param name="movie" value="xyz" />
> <param name="wmode" value="transparent" />
> <embed src="xyz" type="application/x-shockwave-flash"
> wmode="transparent" width="200" height="165" />
> </object>
>
> or this:
>
> <object width="200" height="165">
> <param name="movie" value="xyz"></param>
> <param name="wmode" value="transparent"></param>
> <embed src="xyz" type="application/x-shockwave-flash"
> wmode="transparent" width="200" height="165" ></embed>
> </object>
>
> into this?
>
> <object height="165" width="200">
> <param name="movie" value="xyz">
> <param name="wmode" value="transparent">
> <embed src="xyz" type="application/x-shockwave-flash"
> wmode="transparent" height="165" width="200">
> </object>
>
> Notice my closing tags are gone with the wind. And oddly, my height
> and width tags are switched too. I've even tried using {literal}
> tags, to no avail. I'm sure Smarty is doing some round about favor. I
> just can't figure out why yet.
>
> Any direction you give me would be much appreciated :)
>
> -Velda
>
>
Do you have any smarty tags on your template? I'm pretty sure that
smarty won't touch any of your code unless you tell it to. Can you post
the entire template?
Alvaro
_______________________________________________
UPHPU mailing list
UPHPU at uphpu.org
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.467 / Virus Database: 269.7.0/803 - Release Date: 5/13/2007
12:17 PM
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.467 / Virus Database: 269.7.0/803 - Release Date: 5/13/2007
12:17 PM
More information about the UPHPU
mailing list