Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Suggestion: allow passing in target as a DOMElement, rather than by id. That makes this more useful when template rendering in done off-DOM, or when IDs aren't used.


If it's an object treat it as a dom node, if it's a string, run it through document.querySelector.




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

Search: