Context may be altered by characters in comments #946
Labels
bug
Bug: something already implemented does not work as it should
InvalidBehavior
A valid or not valid code has an invalid behavior at runtime
templates
Related to the template
Currently, when rendering Javascript, characters in comments (as
'
, for example) may change the context, resulting in a bad rendering of the Scriggo template.Consider this:
this is – correctly – rendered as:
As you may note, the strings are quoted correctly, so the bug does not show here.
In this case, instead, the comment contains the character
'
. So, Scriggo changes the context, and thus the template:is – incorrectly – rendered as:
As you may note, the strings are not quoted correctly.
So, this behavior should be investigated and corrected.
The text was updated successfully, but these errors were encountered: