choojs / hyperx

🏷 - tagged template string virtual dom builder
BSD 2-Clause "Simplified" License
1.01k stars 48 forks source link

Add better character range for attributes #39

Closed jamen closed 7 years ago

jamen commented 7 years ago

From my understand in the HTML syntax spec on attributes, a wider range of characters can be supported.

For example in Vue, you have things like <div @click=...>, or <div :href='foo'>. I'm building something with similar syntax and uses hyperx.

Edit: It's worth mentioning these don't actually go to the DOM (which would probably make them invalid, over data-*). They are processed down to regular attributes.