Closed edg2s closed 2 years ago
According to MDN, inert is a property of HTMLElement, not Element: https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/inert
Could I get a review on this? cc @alice @robdodson
CC: @yoavweiss as well, who made the last commit to this repo.
I can confirm that this is causing the polyfill to be applied on browsers like the latest Safari and Chrome that have built-in support for inert
.
Chrome 102, which supports inert, fails the feature detection check, meaning the polyfill is applied unnecessarily:
Changing this to
HTMLElement
makes the test work correctly:Both of the above return
false
in Chrome 101.