Hacker News new | ask | show | jobs
by grayrest 5236 days 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

That said, I don't do this very often because the designers I work with prefer templated markup.