Fix #10791. SVG clamors for special treatment of its class names.

This commit is contained in:
Dave Methvin
2011-11-16 10:35:53 -05:00
parent 80797f5805
commit 780c59b89d
2 changed files with 26 additions and 1 deletions

View File

@@ -21,7 +21,7 @@ var rformElems = /^(?:textarea|input|select)$/i,
return (
(!m[1] || elem.nodeName.toLowerCase() === m[1]) &&
(!m[2] || elem.id === m[2]) &&
(!m[3] || m[3].test( elem.className ))
(!m[3] || m[3].test( ((elem.attributes || {})[ "class" ] || {}).value ))
);
},
hoverHack = function( events ) {