logoalt Hacker News

croesyesterday at 2:22 PM3 repliesview on HN

If I need the old functionality why not stick to innerHTML?


Replies

orfyesterday at 2:39 PM

because the "unsafe" suffix conveys information to the reader, whereas `innherHTML` does not?

show 1 reply
tbrownawyesterday at 2:48 PM

Because then your linter won't be able to tell you when you're done migrating the calls that can be migrated.

philipwhiukyesterday at 4:25 PM

Because sooner or later it'll be removed.

show 2 replies