diff options
-rw-r--r-- | source/html/css-apply.c | 2 | ||||
-rw-r--r-- | source/html/css-parse.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/html/css-apply.c b/source/html/css-apply.c index 63a4941c..8284c5ac 100644 --- a/source/html/css-apply.c +++ b/source/html/css-apply.c @@ -349,7 +349,7 @@ match_selector(struct selector *sel, fz_xml *node) if (sel->combine == '+') { fz_xml *prev = fz_xml_prev(node); - while (prev && !fz_xml_tag(prev) && fz_xml_prev(prev)) + while (prev && !fz_xml_tag(prev)) prev = fz_xml_prev(prev); if (!prev) return 0; diff --git a/source/html/css-parse.c b/source/html/css-parse.c index 1708f550..c3ec8431 100644 --- a/source/html/css-parse.c +++ b/source/html/css-parse.c @@ -594,7 +594,7 @@ static struct selector *parse_adjacent_selector(struct lexbuf *buf) { b = parse_adjacent_selector(buf); s = new_selector(NULL); - s->combine = '>'; + s->combine = '+'; s->left = a; s->right = b; return s; |