Skip to content
Browse files

Ensure searching is scoped

  • Loading branch information...
1 parent 0d2f647 commit 42fd71875ac00224f4a57031344fe07cc1bfbea8 Blake Watters committed Aug 6, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 Classes/Element.m
View
3 Classes/Element.m
@@ -186,7 +186,8 @@ -(NSArray*)elementsWithCSSSelector:(CSSSelector*)selector{
Element* e = self;
while (e){
[matcher matchElement: e];
- e = e.nextElement;
+ // e = e.nextElement;
+ e = [e nextElementWithinScope: self];
}
NSArray* result = [[[matcher matches] retain] autorelease];
[matcher release];

0 comments on commit 42fd718

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