Title: IE11 plugin error
Last modified: July 15, 2019

---

# IE11 plugin error

 *  Resolved [102256je](https://wordpress.org/support/users/102256je/)
 * (@102256je)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/ie11-plugin-error/)
 * Works great on all web browsers except on Internet Explorer
    caspers-leave-notice.
   js line 71: Object doesn’t support property or method ‘closest’

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [XAce90](https://wordpress.org/support/users/xace90/)
 * (@xace90)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/ie11-plugin-error/#post-11736182)
 * Good find, and thanks for reporting this. I’ll put out an update this week with
   the fix, but in the meantime here’s the solution:
 * Go to Plugins -> Editor. At the top right, select Casper’s Leave Notice from 
   the dropdown. In the sidebar of plugin files, go to caspers-leave-notice.js. 
   On line 71, you’ll see the following:
 * `var url = (e.target.hasAttribute('href')) ? e.target.getAttribute('href') : 
   e.target.closest('[href]').getAttribute('href');`
 * Replace that with
 * `var url = (e.target.hasAttribute('href')) ? e.target.getAttribute('href') : 
   $(this).closest('[href]').attr('href');`
 * Thanks again for reporting this issue. Keep an eye out for 1.2.3 coming out shortly.
    -  This reply was modified 6 years, 10 months ago by [XAce90](https://wordpress.org/support/users/xace90/).
 *  Thread Starter [102256je](https://wordpress.org/support/users/102256je/)
 * (@102256je)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/ie11-plugin-error/#post-11736321)
 * Thanks, just tried it on our test/preview site and replacing `var url = (e.target.
   hasAttribute('href')) ? e.target.getAttribute('href') : e.target.closest('[href]').
   getAttribute('href');` with `var url = (e.target.hasAttribute('href')) ? e.target.
   getAttribute('href') : $(this).closest('[href]').attr('href');` did the trick.
   Appreciate your help.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘IE11 plugin error’ is closed to new replies.

 * ![](https://ps.w.org/caspers-leave-notice/assets/icon-256x256.png?rev=1561815)
 * [Casper's Leave Notice](https://wordpress.org/plugins/caspers-leave-notice/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/caspers-leave-notice/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/caspers-leave-notice/)
 * [Active Topics](https://wordpress.org/support/plugin/caspers-leave-notice/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/caspers-leave-notice/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/caspers-leave-notice/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [102256je](https://wordpress.org/support/users/102256je/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/ie11-plugin-error/#post-11736321)
 * Status: resolved