ryansolid / dom-expressions

A Fine-Grained Runtime for Performant DOM Rendering
MIT License
858 stars 125 forks source link

bug: tagged template literals error when dynamic tag and quoted text as children #248

Open MarkChrisLevy opened 1 year ago

MarkChrisLevy commented 1 year ago

There is a bug in parsing html template literal - when html tag is a component reference and this component contains only text as children and text contains quote character, syntax error is thrown (Unexpected identifier) and no output produced.

Try it (check console for error): https://playground.solidjs.com/anonymous/4f2e6138-b426-48db-bf9d-0345a11dd16d