CF 8 bug: ColdFusion injecting cfscript in HTML head
Written on 20 July 2011, 02:13pm
Tagged with: bugs, coldfusion 8, html lang
I recently encountered the following ColdFusion problem:
I had a HTML page where the head node contained an attribute: <head lang="fr">
The same page was also using some cfform
tags.
On the CF 8 server, ColdFusion automatically injects two <script>
statements immediately after <head
, but ignoring any other attribute. So, in our case, the resulting HTML code was:
<head <script type="text/javascript" src="/CFIDE/scripts/cfform.js"></script>
<script type="text/javascript" src="/CFIDE/scripts/masks.js"></script>
lang="fr">
Useless to say, this was breaking a lot of things in the design and the validation of the page.
(more…)
- Likes (0)
- Comments (1)
-
Share