3 ms·
When I do this, I do it with Kris Zyp's put selector [1]. Creates new elements, modifies existing ones. It's the only DOM manipulation API I like besides jQuery
by grayrest 15y ago
When I do this, I do it with Kris Zyp's put selector [1]. Creates new elements, modifies existing ones. It's the only DOM manipulation API I like besides jQuery.
[1] https://github.com/kriszyp/put-selector https://github.com/kriszyp/put-selector
That said, I don't do this very often because the designers I work with prefer templated markup.