views:

362

answers:

1

An HTML template is passed to Coldfusion. The head tag of the template has additional attribute:

<head profile="http://abc.com"&gt;

The issue is that when generating the output based on this template Coldfusion injects its scripts inside the head tag:

<head <script type="text/javascript" src="/CFIDE/scripts/cfform.js"></script>
<script type="text/javascript" src="/CFIDE/scripts/masks.js"></script>
profile="http://abc.com"&gt;

This causes profile="http://abc.com"&gt; to appear on the top of the page and prevents page from validation.

The code injection occurs only when there is a form tag. The wrong-place injection does not happen if the head tag does not have any attributes. The presence of the attribute is a project requirement and cannot be omitted.

Is it possible to prevent Coldfusion from injecting the scripts?

+3  A: 

The script injection only happens for cfforms, not standard forms. If you aren't using any of cfform's enhancements, you can simply switch to a standard form.

I checked the cumulative hotfix list, and didn't see a fix for this.

Ben Doom
@Ben Thanks for the suggestion. That's what probably I'll end up doing. I'm so not looking forward rewriting the existing code. Do you know if this issue is listed as a bug anywhere?
Alex
I don't know if there is a public bug listing. I'd suggest you submit it, as Kip suggested.
Ben Doom
There is a public bug tracker here: http://cfbugs.adobe.com/cfbugreport/flexbugui/cfbugtracker/main.html
Ian
I'll have to bookmark that.
Ben Doom