TerrenceRyan.com

I'm a 35 year old redhead geek from Philly.
I'm currently a Developer Evangelist for Adobe.
Also the author of Driving Technical Change

IE, cfcache and XHTML Strict Don't Mix

3 Comments

I ran into a little problem today, and haven't figured out a way around it yet.

I had a page that is slow but changes rarely, a textbook case for <cfcache>. So I added the caching statement, and ran it. It looked perfectly fine in Firefox. I went to look at it in IE 7, and the CSS was screwed up (supposed to be a centered aligned design, now all the way to the left).

I couldn't figure it out. I looked at the source code, no differences. Finally I ran a comparison on the two page sources, and discovered that <cfcache>seems to add a ColdFusion style comment containing the url of the page into source, above the doctype declaration. I couldn't see how that would cause the problem, so I submitted the source to the W3 Source validation service. It informed me that the comment style invalidates the page, because I was using XHTML 1.0 Strict.

As I see it, my workaround is to set the page to XHTML 1.0 Transitional, or stop using <cfcache> on this page.

3 responses so far ↓

  • 1 Richard Davies

    Wow! This is very good to know. Fortunately, it looks like a bug report has been filed:
    http://livedocs.adobe.com/coldfusion/6/CFML_Reference/Tags-pt19.htm
  • 2 Terrence Ryan

    I'm not holding my breath. ;)
  • 3 Kevin Penny

    Well, in the 8.01 release of coldfusion, this bug is logged as fixed in the release notes - however we're running 8.01 servers and still see the comment in the headers.

    Ahh Adobe - you know if cf was open, we'd have fixed this by now ;)

Leave a Comment









Categories

Monthly Archives

Tag Cloud

coldfusion web development flex coldfusion builder appearances squidhead coldfusion builder extensions higher ed flash builder air mobile android adobe apptacular html5 driving technical change running a coldfusion shop adobemax06 movable type flash catalyst flash blackberry adobemax07 adobemax08 hero finicky css adobemax09 holy crap i’m a mobile developer centaur basecamp cfc unfuddle motorola metablog irrational characters ios git evangelism devices code reviews ant wharton subversion security phonegap philly philadelphia multidevice knowledge@wharton jobs browserlab adobemax10 adobe tv unfuddlecfc svnauth.cfc semantic html semantic html responsive web design qnx nlb linux jquery mobile java it github flexorg fireworks edge eclipse dreamweaver apps apple adobemax11