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.

Raymond Camden's Picture

About Raymond Camden

Raymond is a developer advocate. He focuses on JavaScript, serverless and enterprise cat demos. If you like this article, please consider visiting my Amazon Wishlist or donating via PayPal to show your support. You can even buy me a coffee!

Lafayette, LA https://www.raymondcamden.com