inert-polyfill icon indicating copy to clipboard operation
inert-polyfill copied to clipboard

Support?

Open IchordeDionysos opened this issue 8 years ago • 12 comments

I know this is a polyfill, but as a general question:

How likely is it that browser vendors implement it? I saw the Chrome issue saying they won't continue implementing this. I saw the Firefox issue that they think this is no more relevant as it's removed from the spec. It's not even listed on chromestatus.com.

I see the great advantage, but why aren't they all not implementing it?

IchordeDionysos avatar Jan 04 '17 16:01 IchordeDionysos

@samthor @robdodson

ebidel avatar Jan 04 '17 17:01 ebidel

We've been doing work to incubate the standard as part of the WICG (https://github.com/WICG/inert). Internally, we've received positive signals from the Chrome team so we are hopeful we can get it shipping behind an experimental flag soon. @alice is working on that. Once we send out an intent to implement, it should show up on chromestatus.

We've also held discussions on the WICG Discuss forum and Moz has stated they are "cautiously supportive" (https://discourse.wicg.io/t/inert-attribute/1838/30), so we're hopeful that given time to take a deeper look at inert they'll continue to be supportive.

And we're continuing to reach out to Safari though the person we were speaking with has since gone on leave after having a new baby so those discussions are on hold for the moment.

robdodson avatar Jan 04 '17 17:01 robdodson

Okay, thanks Rob for the explanation. 👍 I think for now it's one of the best ways to teach developers, how easy it is to use, as you already taught me ;) This would kinda force browser vendors implementing it :D

IchordeDionysos avatar Jan 04 '17 17:01 IchordeDionysos

FWIW, @robdodson and others' polyfill is more strict (slower, and changes tabindex on your elements, which may not be what you want), and probably better for a demo for standardization.

In practice though, this polyfill is faster since it just piggybacks on the focus event.

Regardless, I'm glad to see some renewed interest in this 👍

samthor avatar Jan 18 '17 23:01 samthor

Hey all,

In the readme it mentions support for ie9+. but testing with ie11 in my own file, as well as the short demo included in the readme, I'm able to tab to all focusable elements.

Is IE no longer supported with this polyfill?

Thanks

scottaohara avatar Mar 12 '18 20:03 scottaohara

I can confirm comment of @scottaohara . It doesn't seem to work on IE11.

robfentress avatar May 16 '18 19:05 robfentress

The joys of IE11 :P

@scottaohara @robfentress do y'all have reproducible test cases for IE11?

I did some work on this recently for our WICG version of the polyfill. When this PR lands, we should have IE11 support over there but additional test cases are welcome. Folks are more than welcome to copy the karma/sauce setup to use in their own projects/tests/whatever—it's a pain in the butt to get it all working but once it's setup, it's pretty chill.

robdodson avatar May 23 '18 14:05 robdodson

Hello. The demo included in the readme is not working in IE11 and the PR above mentioned was already merged. Do I need to do any special setup for IE 11? Also, is not working in my own file just by adding the inert attribute.

Regards

afallas avatar Jul 02 '18 16:07 afallas

Sorry for confusion @afallas. The PR is for the WICG version of the polyfill (https://github.com/WICG/inert). It has a different implementation from the version in this repo. You can read about the tradeoffs here: https://github.com/GoogleChrome/inert-polyfill#limitations

robdodson avatar Jul 02 '18 16:07 robdodson

Thanks for the fast response @robdodson, and thanks for the help

afallas avatar Jul 02 '18 16:07 afallas

Does anyone know the actual status of this, from a standards perspective? It's pretty hard to find any concrete and reliable information about it...

  • Is this, or will it become, part of the HTML standard?
  • Which browsers have native support for this today?
  • Which browsers are planning to ship native support for this?
  • Is this polyfill recommended - or should we consider alternative ways to make things inert?

thomas-darling avatar Mar 18 '19 01:03 thomas-darling

@thomas-darling: That's on me - I have a PR open on WHATWG but I've been struggling to accurately word the logic.

Chrome has native support behind the experimental web features flag - we can ship as soon as I finish writing the spec (and making sure the implementation matches it).

alice avatar Mar 18 '19 02:03 alice