From 421872ffc8e4d36e6fab6c69181642706b4817d6 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sat, 5 Nov 2011 15:24:50 +0000 Subject: Fix regression introduced by reject cache: do not cache failure to match multi-detailed selectors svn path=/trunk/libcss/; revision=13126 --- src/select/select.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/select/select.c') diff --git a/src/select/select.c b/src/select/select.c index 47aca20..cc6b646 100644 --- a/src/select/select.c +++ b/src/select/select.c @@ -1145,6 +1145,7 @@ static void update_reject_cache(css_select_state *state, N_ELEMENTS(state->reject_cache) || comb != CSS_COMBINATOR_ANCESTOR || next_detail == NULL || + next_detail->next != 0 || (next_detail->type != CSS_SELECTOR_CLASS && next_detail->type != CSS_SELECTOR_ID)) return; -- cgit v1.2.3