diff --git a/esm/rabbit.js b/esm/rabbit.js index f790952..6a272a4 100644 --- a/esm/rabbit.js +++ b/esm/rabbit.js @@ -11,11 +11,11 @@ const parseSVG = create(parser(true)); * @param {Hole} hole * @returns {Node} */ -export const unroll = (cache, { s: stack, t: template, v: values }) => { +export const unroll = (cache, { s: svg, t: template, v: values }) => { if (values.length && cache.s === empty) cache.s = []; unrollValues(cache, values); if (cache.t !== template) { - const { n: node, d: details } = (stack ? parseSVG : parseHTML)(template, values); + const { n: node, d: details } = (svg ? parseSVG : parseHTML)(template, values); cache.t = template; cache.n = node; cache.d = details; diff --git a/test/index.html b/test/index.html new file mode 100644 index 0000000..93d390f --- /dev/null +++ b/test/index.html @@ -0,0 +1,50 @@ + + +
+ + +