Skip to main content

Bug Tracker

Side navigation

Ticket #2192: selector.diff
File selector.diff, 0.5 KB (added by cloudream, January 19, 2008 11:35AM UTC)

patch for /src/selector.js

Index: selector.js
===================================================================
--- selector.js	(revision 4482)
+++ selector.js	(working copy)
@@ -344,7 +344,8 @@
 						 type == "!=" && z != m[5] ||
 						 type == "^=" && z && !z.indexOf(m[5]) ||
 						 type == "$=" && z.substr(z.length - m[5].length) == m[5] ||
-						 (type == "*=" || type == "~=") && z.indexOf(m[5]) >= 0) ^ not )
+						 type == "*=" && z.indexOf(m[5]) >= 0 ||
+						 type == "~=" && (' '+z+' ').indexOf(' '+m[5]+' ') >= 0) ^ not )
 							tmp.push( a );
 				}

Download in other formats:

Original Format