logoalt Hacker News

masklinnlast Wednesday at 6:30 PM2 repliesview on HN

That breaks existing usages of innerhtml which may legitimately need its more dangerous features.


Replies

cxrlast Wednesday at 8:35 PM

It seems obvious enough that parent is talking about changing the behavior of innerHTML within their own application, not for browser makers to change the implementation. It's unfair to take the most uncharitable interpretation and upbraid the other commenter for being insufficiently defensive[1] when they pressed "reply".

1. <https://pchiusano.github.io/2014-10-11/defensive-writing.htm...>

show 1 reply
cluckindanlast Thursday at 12:38 PM

Maybe I should have included the word ”monkeypatch” in the comment.