> > Really? Do you do this: > > > > <cfset myvar = "myval" /> > > I have seen a lot of code like this ... Especially <br/> 's > > Studio does it automatically for you as well ...
Well, that's a little different. If you want to write HTML that will comply with XHTML, you have to close every tag, even BR and HR tags which would never contain anything - that's just the nature of XML. But it's another thing to treat CFML that way, because CFML isn't XML, and if you treat it like XML, you may run into odd situations, like the one shown above. For example, does it set the variable twice? Well, fortunately (I guess) it doesn't in CF 5 or CF MX, although the opposite behavior might be expected based on how custom tags work - if they have a closing slash, they do execute twice. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ______________________________________________________________________ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists