<div dir="ltr">Hi, <br><br>I want to use this fairly new JS function `Element.replaceChildren()` [1] to replace error/update messages. Looking at browser stats, it seems pretty compatible but it doesn't work with IE. How should browser compatibility be approached? <div><br></div><div>Also, <a href="https://caniuse.com/?search=replaceChildren">https://caniuse.com/?search=replaceChildren</a>. </div><div><br></div><div>[1] <a href="https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceChildren">https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceChildren</a> </div><div>[2] <a href="https://www.stetic.com/market-share/browser/">https://www.stetic.com/market-share/browser/</a></div></div>