Browser compatibility and IE support for JavaScript functions

Stephen Finucane stephen at that.guru
Thu Aug 12 20:46:35 AEST 2021


On Fri, 2021-08-06 at 11:35 +1000, Daniel Axtens wrote:
> 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.

To second this, the oldest Firefox ESR (which I know at least Red Hat uses in
places internally) is version 78 [1]. I'm unsure about whether there's a Chrome
LTS or not (you might be able to find out, actually :)), but the enterprise
release notes [2] suggest the oldest version Google care about is version 88.
We're good on both fronts so no issues from me.

Stephen

[1] https://www.mozilla.org/en-US/firefox/all/#product-desktop-esr
[2] https://support.google.com/chrome/a/answer/7679408?hl=en

> 
> 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
> _______________________________________________
> Patchwork mailing list
> Patchwork at lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/patchwork




More information about the Patchwork mailing list