logoalt Hacker News

iLoveOncallyesterday at 6:44 PM1 replyview on HN

But that's what setHTML isn't at all a replacement for innerHTML.

You still need innerHTML when you want to inject HTML tags in the page, and you could already use innerText when you didn't want to.

Having something in between is seriously useless.


Replies

Dylan16807yesterday at 9:30 PM

> You still need innerHTML when you want to inject HTML tags in the page

What makes you say this?