For some reason, under some (but not all) circumstances, Transphporm is wrapping my Inline Javascript with CDATA. This means both my Javascript gets broken, and my browser's console spews error messages like this one:
SyntaxError: Unexpected token '<' (anonymous function) — list-claims-form:168
The content at that point looks like this:
<script><![CDATA[
$("#payer-id-input").keyup(function (e) {
var code = (e.keyCode ? e.keyCode : e.which);
if (code == 39) { // right-arrow keycode
e.preventDefault();
$('#payer-picker-modal').modal();
}
});
]]></script>
I've got a working test case where the error is repeatable, although it's still larger than what would be easily posted here. I'll ZIP it up and attach it, if I can.
For some reason, under some (but not all) circumstances, Transphporm is wrapping my Inline Javascript with CDATA. This means both my Javascript gets broken, and my browser's console spews error messages like this one:
The content at that point looks like this:
I've got a working test case where the error is repeatable, although it's still larger than what would be easily posted here. I'll ZIP it up and attach it, if I can.