Why do HTMLEditFormat and HTMLCodeFormat take a version?

Sorry for all the 'why' questions today - but this is the second time today I've run into something weird in ColdFusion. Did you know that both HTMLEditFormat and HTMLCodeFormat take a second argument? The argument, version, is supposed to allow you to specify what version of HTML to target. But for both tags - the argument is ignored. Even though the argument is ignored, the docs list out 3 possible values:

  • -1: The latest implementation of HTML
  • 2.0: HTML 2.0 (default)
  • 3.2: HTML 3.2

I'm wondering if this is something that was planned a while ago and just forgotten - like the cfexecute oddity I found earlier.

Archived Comments

Comment 1 by David Buhler posted on 11/28/2007 at 3:51 AM

The docs suggest the "version": was used in CF6, and then 'ignored' in CF7 and CF8.

Valid here:
http://livedocs.adobe.com/c...

Ignored here...
http://livedocs.adobe.com/c... and here...
http://livedocs.adobe.com/c...

Guessing...
HTML 1.0 |
HTML 2.0 |
HTML 3.0 |
HTML 3.2 |

...Macromedia, decides there is little reward offering backwards compatibility for HTML, when XHTML is becoming the new 'standard'...

HTML 4.0 |
XHTML 1.0

Comment 2 by Raymond Camden posted on 11/28/2007 at 3:52 AM

Interesting. Thanks for digging into this David!