Remix clone Hacker News
new
|
show
|
ask
|
jobs
Github
▲
austin-cheney
7 hours ago
Another solution is just use this at the start of your code:
delete Element.prototype.innerHTML;
Then assignments to innerHTML do not modify the element's textContent or child node list and assignments to it will not throw an error.