Error caused by comments inside a tag

Hope this is the right place to report an issue with Lucee. We are doing a comparison test to see if we can switch from ACF to Lucee. The following syntax works fine in ACF (no errors) but causes an exception in Lucee:

These work in both Lucee and ACF:

<anytag
  <!--- comment 1 --->
>

<anytag
  <!--- comment 1 --->
  Attribute1="xxxxxxx"
  <!--- comment 2 --->
  <!--- comment 3 --->
>

But, these error out in Lucee and not ACF

<anytag
  <!--- comment 1 --->
  <!--- comment 2 --->
>

<anytag
  <!--- comment 1 --->
  <!--- comment 2 --->
  Attribute1="xxxxxxx"
  <!--- comment 3 --->
  <!--- comment 4 --->
>

Apparently, Lucee does not like back to back comments right after tag name. Any thoughts or suggestions (other than changing our code)?

1 Like

Good find!

Time to file a bug in jira https://luceeserver.atlassian.net/

it might take a while to be addressed and land in a stable release, in the meantime you’ll just need to refactor your code

Filed a bug for this :slight_smile: https://luceeserver.atlassian.net/browse/LDEV-2497