Closed jantimon closed 3 years ago
Update: I tried with @adobe/htlengine@5 and it generates working code (no lowercasing):
let headlineDemo;
headlineDemo = function* _template_global_headlineDemo(args) {
const textMessage = args[1]['textMessage'] || '';
let $t, $n = args[0];
$.dom.text($n,"\n ");
$t = $.dom.create("h1",false,false);
$n = $.dom.push($n,$t);
const var_0 = yield $.xss(textMessage, "html");
$.dom.append($n, var_0);
$.dom.text($n,"!");
$n = $.dom.pop($n);
$.dom.text($n,"\n");
};
$.template('global', 'headlineDemo', headlineDemo);
yes, this is a regression of the case-insensitivity fix. according to the HTL spec, all variables are case insensitive. I must have missed some edge cases. thanks for reporting.
:tada: This issue has been resolved in version 6.3.3 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Thanks for the fix! :)
Hi @tripodsan
I am only guessing that this is a bug in your code but I am not entirely sure.
Given the following template:
the following code is generated:
On first glance this looks correct however there is something really strange:
the
M
inMessage
is uppercase in this line:but in this line it is lowercase:
Unfortunately node is case sensitive and will fail as it is not able to access
textmessage
Do you have any idea what might cause this?