Seems to be caused by the user clicking on a <svg>, and the browser returning nodeName as undefined. Like, if the user clicks on a "Share" button on our site.
Is setting currentElement critical or a nice feature? regardless, it should check if nodeName exists before calling toLowerCase(). I'll make pull request.
I'm seeing this happen across all browsers (Chrome, Safari 11, IE): https://sentry.io/share/issue/2a3086e854984946a535c53daf14aed7/
Seems to be caused by the user clicking on a
<svg>
, and the browser returningnodeName
as undefined. Like, if the user clicks on a "Share" button on our site.Is setting
currentElement
critical or a nice feature? regardless, it should check ifnodeName
exists before callingtoLowerCase()
. I'll make pull request.