Skip to content
This repository
Browse code

Ensure searching is scoped

  • Loading branch information...
commit 42fd71875ac00224f4a57031344fe07cc1bfbea8 1 parent 0d2f647
Blake Watters authored

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. +2 1  Classes/Element.m
3  Classes/Element.m
@@ -186,7 +186,8 @@ -(NSArray*)elementsWithCSSSelector:(CSSSelector*)selector{
186 186 Element* e = self;
187 187 while (e){
188 188 [matcher matchElement: e];
189   - e = e.nextElement;
  189 + // e = e.nextElement;
  190 + e = [e nextElementWithinScope: self];
190 191 }
191 192 NSArray* result = [[[matcher matches] retain] autorelease];
192 193 [matcher release];

0 comments on commit 42fd718

Please sign in to comment.
Something went wrong with that request. Please try again.