It appears that Elm is not compatible with IE11
As this issue shows, Elm crashes in IE11. There has been a patch in this PR, but it seems to be bit-rotting.
The crasher is unfortunate, because you cannot polyfill that behaviour of IE away. and IE11 is going to be supported for as long as Windows 10 is being kept alive, which is more than a decade still.
Now I could simply not produce input[type=date]
fields, but that seems to be the wrong approach. If only, because I want to stay as semantically correct as possible. Also, I prefer native widgets over custom ones. And, of course, using the,e.g. elm-datepicker (sorry, I cannot put a link yet, because I’m a new user… hxxp://package.elm-lang.org/packages/elm-community/elm-datepicker/), would mean that I have to alter my code to carry the date picker’s state along.
Now my question is: What options exist to make Elm 0.18 IE11 compatible (where compatible really means that it shouldn’t crash) and how difficult do you think they are to realise?
I see:
- ship a patched version of virtual dom.
- use a web component.
- Somehow detect IE11 from within Elm and avoid producing a date input.