Yes, you read it correctly, Dreamweaver CS3 is rewriting my code. I'll go to save a file and upload it to my web site, only to get strange ColdFusion errors about unbalanced tags. I finally determined that if I close and reopen the file, I'll see the changes.
Fix the file, save, and re-upload, and the errors reappear. Needless to say, this is extremely frustrating, as you can never tell when deploying a set of changes to a site will work or not.
I've included a YouTube video after the break that shows the entire process.
As I said in the video, not closing the list tag can be considered bad practice, but still, why is Dreamweaver rearranging the code in the first place? All "rewriting" options are off in Preferences, so why alter code? And why alter code being saved to disk?
Unfortunately, I'm supporting one site that was started back in the days of CF4.5, and it's chock full of little non-standard inconsistencies like the above missing /LI tag, or non-closing /P tags. And it's gotten to the point where I'm afraid to make ANY changes whatsoever.
Has anyone else even heard of such a thing?
I forgot to add that we linked them to this page and video so thanks for making them and making it easy to explain to Adobe!
Posted by: Carlo | March 10, 2010 at 11:14 AM
I forgot to mention that we linked them to this page and video so thanks for making them and making it easy to explain to Adobe!
Posted by: Carlo | March 10, 2010 at 11:21 AM
I'm seeing the same issue in CS4. It is adding an additional opening tr tag in two places which completely destroys the table. I've set my preferences to stop rewriting code but it still does it. I wish they would fix this huge bug!
Posted by: Monica | May 02, 2010 at 07:53 PM
I realize this is an old post but I am/was having this issue. For what it's worth, this is the problem I was having and what fixed it.
I had a cfoutput tag around the entire tr & /tr tag because the class used for that tr was a variable. I also had a query driven cfoutput tag around a few td & /td tags. Dreamweaver was adding tr tags in front of each of the td tags.
To fix this I put the cfoutput around the the class var, not the entire tr tag and that stopped DW from inserting tr tags.
This blog wont let me post code so here is a photo of the offending and corrected code...
http://i.imgur.com/xphAF.jpg
Posted by: Josh Breslow | October 27, 2011 at 01:42 PM