WebReflection / domtagger

The hyperHTML's template literal parser
ISC License
43 stars 3 forks source link

Implementing sparse attributes #15

Closed WebReflection closed 5 years ago

WebReflection commented 5 years ago

In way too many occasions people assumed, or asked me about, the ability to have multiple holes per attribute, as in:

<div attr="${'a'}b${'c'}"/>

While I am still convinced having sparse attributes gives a false sense of partial attribute update, the DX seems to win over both logic and performance.

This MR is an attempt to bring partial attributes updates without penalizing performance too much, so that both hyperHTML and lighterhtml can benefit from this feature.

WebReflection commented 5 years ago

to whom it might concern, please feel free to thumb up or down this feature, thanks 👋