var tree = hx`<div>
<h1 y="ab${1+2}cd">hello ${title}!</h1>
</div>`
console.log(tree.outerHTML)
works fine on the server but in the browser, hyperscript ignores the y="" attribute. So updating the example and test to use data-y="" with a note about why we dont use custom attributes with hyperscript.
Fixes GH-59
This example:
works fine on the server but in the browser, hyperscript ignores the
y=""
attribute. So updating the example and test to usedata-y=""
with a note about why we dont use custom attributes with hyperscript.