Browser compatibility and IE support for JavaScript functions
Daniel Axtens
dja at axtens.net
Fri Aug 6 11:35:41 AEST 2021
Raxel Gutierrez <raxel at google.com> writes:
> Hi,
>
> 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?
>From caniuse.com it looks like by IE they mean the old legacy IE which
is now out of support - it looks like Edge supports this. So I would be
happy to use replaceChildren.
In general, while I want to avoid needlessly breaking compat, I'm happy
if things work in Firefox and Chrome.
Kind regards,
Daniel
>
> Also, https://caniuse.com/?search=replaceChildren.
>
> [1] https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceChildren
>
> [2] https://www.stetic.com/market-share/browser/
> _______________________________________________
> Patchwork mailing list
> Patchwork at lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/patchwork
More information about the Patchwork
mailing list