Sponsor of the Day:
Jerkmate
https://friendlybit.com/js/manipulating-innerhtml-removes-events/
Manipulating innerHTML removes events - Friendly Bit
Others have written about this before, but I thought I'd mention it again, just so you don't miss it. Aleksandar Vaci? found it while playing with tables...
friendly bitmanipulatinginnerhtmlremovesevents
https://hacks.mozilla.org/2026/02/goodbye-innerhtml-hello-sethtml-stronger-xss-protection-in-firefox-148/
Goodbye innerHTML, Hello setHTML: Stronger XSS Protection in Firefox 148 - Mozilla Hacks - the Web...
Cross-site scripting (XSS) remains one of the most prevalent vulnerabilities on the web. The new standardized Sanitizer API provides a straightforward way for...
xss protectionfirefox 148mozilla hacksgoodbyeinnerhtml
https://developer.mozilla.org/en-US/docs/Web/API/Element/innerHTML
Element: innerHTML property - Web APIs | MDN
The innerHTML property of the Element interface gets or sets the HTML or XML markup contained within the element, omitting any shadow roots in both cases.
property web apiselementinnerhtmlmdn
https://www.eslint-react.xyz/docs/rules/dom-no-dangerously-set-innerhtml
no-dangerously-set-innerhtml | ESLint React
Disallows DOM elements from using 'dangerouslySetInnerHTML'.
eslint reactdangerouslysetinnerhtml