mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Added test case related to https://github.com/marko-js/htmljs-parser/issues/50 - Escaped placeholder not handled correctly in PARSED_TEXT_CONTENT state
This commit is contained in:
parent
c4564b3db2
commit
c5c015e2ec
@ -0,0 +1,5 @@
|
||||
<script type="application/json">
|
||||
{
|
||||
"event": "${base}=${track}"
|
||||
}
|
||||
</script>
|
||||
@ -0,0 +1,5 @@
|
||||
<script type="application/json">
|
||||
{
|
||||
"event": "\${base}=\${track}"
|
||||
}
|
||||
</script>
|
||||
@ -0,0 +1,3 @@
|
||||
<script type="application/json">
|
||||
{"requests":{"base":"/abc","pageview":"${base}=${ping}","event":"${base}=${track}"}}
|
||||
</script>
|
||||
11
test/autotests/render/script-json-stringify/template.marko
Normal file
11
test/autotests/render/script-json-stringify/template.marko
Normal file
@ -0,0 +1,11 @@
|
||||
var basePath='/abc';
|
||||
|
||||
<script type="application/json">
|
||||
${JSON.stringify({
|
||||
"requests": {
|
||||
"base": basePath,
|
||||
"pageview": "\${base}=\${ping}",
|
||||
"event": "\${base}=\${track}"
|
||||
}
|
||||
})}
|
||||
</script>
|
||||
Loading…
x
Reference in New Issue
Block a user