Closed ruuda closed 1 year ago
The following snippet causes Kobold to generate invalid javascript:
html! { <svg></svg> }
generates
export function __e0_77bcc8fe2fa4f331() { let e0=document.createElement("svg"); e0.append); return e0; }
which then causes
Uncaught SyntaxError: Unexpected token ')' (at inline0.js:3:10)
<svg/> and <svg>""</svg> both work fine, only an empty tag causes this problem.
<svg/>
<svg>""</svg>
Thanks for this, and sorry for being so slow, I was taking a bit of a coding break. Fixed and published in 0.4.1.
Thanks for the fix!
The following snippet causes Kobold to generate invalid javascript:
generates
which then causes
<svg/>
and<svg>""</svg>
both work fine, only an empty tag causes this problem.