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

innerHTML is still the fastest way to inject content into a page.



You're correct (In IE), and also the worst.

Security issues, encoding issues, scripting attack issues, inability to work with tables event handlers etc etc. Never use innerHTML for anything serious.


Are there faster ways of getting HTML into a page on other browsers? As far as I know, innerHTML is always the fastest in any browser. I agree its not as safe though.




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

Search: