cfhtmlhead output is not rendered on debugging enabled

Description

<cfhtmlhead><link href="/news.xml" rel="alternate" type="application/rss+xml" title="Latest News" /></cfhtmlhead> test

Environment

None

Attachments

1
  • 06 Oct 2020, 04:22 pm

Activity

Show:

Pothys - MitrahSoft 9 October 2020 at 12:32

sorry , I forgot to change the status. Now I changed it.

Guardian 9 October 2020 at 11:44

Sorry, should I recheck something, why status “Need more details”?
Details: If you do not add “head” tag, cfhead is rendering inside body.

Pothys - MitrahSoft 7 October 2020 at 15:45
Edited

, I've checked with your above example with debugging enabled, Yes the issue has occurred in lucee. Because of cfhtmlhead content rendered in the body instead of the head of the HTML.So javascript function hello() doesn't define in the head. And if we removed the </head> tag from relevant debugging CFC files means works fine.

Guardian 7 October 2020 at 07:52
Edited

As a temporary fix, I removed closing head tag from debugging template.

Guardian 7 October 2020 at 07:47

Please check this example: With debugging enabled appear error: “hello is not defined”

<cfhtmlhead text='<script>function hello(){alert(1);}</script>'> <script>     hello(); </script>

Details

Assignee

Reporter

Priority

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Affects versions

Created 6 October 2020 at 15:13
Updated 19 May 2021 at 11:49

Flag notifications