It's a personal style thing.  I like it, because it's consistent with
the XHTML I create.  I don't have to think about whether I'm writing
CFML or XHTML, I just close every tag.

One thing to watch out for, however, is custom tags.  The self-close
is treated a closing tag, so if your custom tag isn't expecting that,
weird problems can arise.  In theory, every custom tag will properly
check it's executionMode, and react accordingly, possibly by ignoring
a close tag that it wasn't expecting, but that's not always the case.

<cf_myCustomTag>
<cf_myCustomTag />

The first line will call the custom tag once, with executionMode =
"start", while the second line will call the custom tag twice, once
with executionMode = "start", and then again with executionMode =
"end".  This goes for CFMODULE calls as well.

cheers,
barneyb


On Thu, 3 Feb 2005 18:14:19 -0500, dave <[EMAIL PROTECTED]> wrote:
> 
> ok this is dumb but was just curious about something
> 
>  i have always done cfsets like suck
>  <cfset blah = "my ex">
> 
>  but i was just browsing through one of charlie griefers articles and i see 
> he closes the tag, like suck
>  <cfset blah = "my ex" />
> 
>  the docs dont mention using a closing tag and i have never seen it before so 
> just curious
> 
>  :)
> 
> 


-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193002
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to