Hacker News new | past | comments | ask | show | jobs | submit login

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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: