Microsoft won't replace the old Edge soon enough, likely to treat it like IE. We won't support it that long so probably we should get a plan to deprecate it.
So...
Remove Edge support and start using new APIs including Array.prototype.flat:
I wanted to keep supporting Edge when we had no Chromium Edge, but now I have no strong opinion and my life will be completely okay without EdgeHTML support.
cc @marcoscaceres @sidvishnoi
Collected from discussion below:
trimLeft, trimRight (#2746)Object.fromEntries() where applicable (#2761)Array@flat (#2746)What are the pain points in supporting current Edge? What can be refactor or modernise if we remove Edge support? Array.prototype.flat is one, but it doesn't hurt a lot to _polyfill_ it
For now the pain is small. Being forced to use .trimLeft() instead of .trimStart(), being unable to use Object.fromEntries() (some code uses .reduce() to do this), etc.
I think just to be safe, let's wait until first stable. At least then we have a legitimate case to drop support for old Edge, and people who run into trouble have an option to use it (without needing to switch browser vendors).
One more pain: a polyfill is required to use navigator.clipboard.writeText(). (We already have one but anyway.)
Another pain: 'TextEncoder' is not supported, causing entire xref to fail in Edge (image).
TextEncoder is used in xref to create SHA based unique ids.
Version: Microsoft Edge 44.18362.1.0, Microsoft EdgeHTML 18.18362
We can use a polyfill, or use some other way to create hashes (or just deprecate EdgeHTML support :wink:)
Xref is a W3C feature really, so I鈥檇 be fine with us ignoring Edge support.
I guess we can drop old Edge now
Yes, as the new Microsoft Edge is available on https://www.microsoft.com/edge 馃憤
Awesome! let's do this!!! What do we need to do??!?
Collected from comments above:
trimLeft, trimRightObject.fromEntries() where applicableArray@flatI'll be working on Array.flat and trim* parts for now
I guess we can cleanup utils@children also:
https://github.com/w3c/respec/blob/d3ca6fddfc944b7be9bffb27d059926b7e171a53/src/core/utils.js#L770-L796
Most helpful comment
Yes, as the new Microsoft Edge is available on https://www.microsoft.com/edge 馃憤