CF 8 bug: ColdFusion injecting cfscript in HTML head
Written on 20 July 2011, 02:13pm
I recently encountered the following ColdFusion problem:
I had a HTML page where the head node contained an attribute:
The same page was also using some
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:
Useless to say, this was breaking a lot of things in the design and the validation of the page.
After doing some research, I found on Stack Overflow the exact same problem I encountered. It looks like it’s simply a ColdFusion bug.
Luckily for me, in my particular case the solution was to move the
lang attribute from
<title> (where I was really needing it).
More information about the HTML lang attribute: http://www.w3.org/TR/html4/struct/dirlang.html
Written by Dorin Moise (Published articles: 259)