WPIntell

Source evidence

IE11 plugin error

Casper’s Leave Notice · support · 2019-07-15T17:15:00+00:00

mixedsentiment
mediumseverity
0.72relevance
2replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

2 / 19 rows with source links

10.5% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

17 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
102256je resolved
Works great on all web browsers except on Internet Explorer caspers-leave-notice.js line 71: Object doesn’t support property or method ‘closest’ 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 . 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.

Comments

2 shown
XAce90 2019-07-16T13:07:00+00:00

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 .

102256je 2019-07-16T13:39:00+00:00

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.