You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.
I have not been able to duplicate this on my local machine yet. But it seems from the code and error that the relatedTarget is not considered a node in certain circumstances. What is interesting is that one of the pages that is sometimes throwing the error doesn't actually subscribe to any pointer events. So this is just from the default subscriptions that occur internally (I assume there are some?).
Maybe we can do a check on relatedTarget?
The text was updated successfully, but these errors were encountered:
When doing some debugging the logs would say the relatedTarget was:
<divclass="anonymous-div">
The bug pointed out that jQuery, google, extjs and mochikit all have fixes for this issue. I think it would just require you to do this:
contains: /*scope.external.contains || */function(container,contained){try{returncontainer.contains(contained);}catch(ex){// Sometimes in Firefox element is anonymous div around input.// Throws error "TypeError: Argument 1 of Node.contains does not implement interface Node"// See https://bugzilla.mozilla.org/show_bug.cgi?id=208427returnfalse;}}
I am not sure if in javascript there is a performance impact in just wrapping something in try/catch without throwing errors (which is the most common use case). The mouseover code is ran a lot so this should be considered. Here is some info on that:
Sometimes in production I will see the following error:
"TypeError: Argument 1 of Node.contains does not implement interface Node"
When I review the logs I can see the error is happening in the dispatcher here:
The only time this function seems to be called is when leaveOut() or enterOver() is called:
I have not been able to duplicate this on my local machine yet. But it seems from the code and error that the
relatedTarget
is not considered a node in certain circumstances. What is interesting is that one of the pages that is sometimes throwing the error doesn't actually subscribe to any pointer events. So this is just from the default subscriptions that occur internally (I assume there are some?).Maybe we can do a check on
relatedTarget
?The text was updated successfully, but these errors were encountered: