Skip to main content

Bug Tracker

Side navigation

Ticket #4169: 4169.patch


File 4169.patch, 0.5 KB (added by initjh, February 17, 2009 04:16AM UTC)

adds check for has selector

Index: src/selector.js
===================================================================
--- src/selector.js	(revision 6215)
+++ src/selector.js	(working copy)
@@ -427,7 +427,8 @@
 					}
 					return false;
 				}
-			} else if ( Expr.match.POS.test( match[0] ) || Expr.match.CHILD.test( match[0] ) ) {
+			} else if ( match[1] === "has" ){
+            } else if ( Expr.match.POS.test( match[0] ) || Expr.match.CHILD.test( match[0] ) ) {
 				return true;
 			}

Download in other formats:

Original Format