A Dragon in Sheep’s Clothing

Thoughts from a web designer, writer and cat lover.

A Dragon in Sheep’s Clothing header image 1

Comment tags and ColdFusion in Internet Explorer 6.x

Posted by Heidi on June 20th, 2007 · No Comments

Interesting bug I wanted to share with the world….

On my organization’s website, some ColdFusion code was recently added above the HTML of the homepage in order to redirect traffic trying to access a certain subdomain. Before each line of CF code, a standard HTML comment

<!-- Like this -->

was included for future reference.

Well, I know (now) that ColdFusion comments must have 3 dashes instead of two. Oddly, the only hint of an error we got from the 2-dash comment code was that it caused IE 6.x to ignore the cascading stylesheet alignments which centered the content, rendering all the content left-aligned. Everything else that the stylesheet controlled on the homepage was unaffected. (The stylesheet didn’t change either.)

Of course, the problem was fixed when we used 3 dashes instead of 2 in the comment code.

You’d think that Dreamweaver would highlight the 2-dash comment as invalid when editing a Coldfusion (.cfm) file, yes? But it didn’t.

And Firefox did not have any problems no matter which way the comments were formatted.

Tags: HTML and CSS · Internet

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

Leave a Comment