Closed Bug 1352249 Opened 8 years ago Closed 5 years ago

Element.closest polyfill doesn't work in Edge

Categories

(Developer Documentation Graveyard :: API: DOM, enhancement, P5)

All
Other
enhancement

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: me, Unassigned)

References

()

Details

:: Developer Documentation Request Request Type: Correction Gecko Version: unspecified Technical Contact: :: Details The polyfill on this page doesn't work on Edge (tested using the most recent Edge VM from modern.ie. I found an alternative polyfill at https://github.com/jonathantneal/closest/blob/1615d778cb3263bf20fee81d5313e113abf5361c/element-closest.js that does work. Note that this one polyfills both Element.closest and Element.matches, but they're easily separated.
MDN Web Docs' bug reporting has now moved to GitHub. From now on, please file content bugs at https://github.com/mdn/sprints/issues/ and platform bugs at https://github.com/mdn/kuma/issues/.
Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.