Commit f860e0bd authored by Richard Gibson's avatar Richard Gibson Committed by Dave Methvin

Fix #13180: don't delegate into SVG <use>

parent 7812aab1
...@@ -405,8 +405,9 @@ jQuery.event = { ...@@ -405,8 +405,9 @@ jQuery.event = {
cur = event.target; cur = event.target;
// Find delegate handlers // Find delegate handlers
// Black-hole SVG <use> instance trees (#13180)
// Avoid non-left-click bubbling in Firefox (#3861) // Avoid non-left-click bubbling in Firefox (#3861)
if ( delegateCount && (!event.button || event.type !== "click") ) { if ( delegateCount && cur.nodeType && (!event.button || event.type !== "click") ) {
for ( ; cur != this; cur = cur.parentNode || this ) { for ( ; cur != this; cur = cur.parentNode || this ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment