I get this error when setting a dynamic class in a svg element:
import {render, svg} from '//unpkg.com/lighterhtml?module';
const someClass = "foobar" // this is dynamic in the original code, this is just a dummy example
// as automatically rendered wired content 🤯
todo(document.body);
function todo(node, items = []) {
render(node, () => svg`
<svg width="200" height="200">
<text x="20" y="35" class=${someClass}>hello world</text>
</svg>`);
}
I get this error when setting a dynamic class in a svg element: