diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2014-11-17 13:49:16 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2014-12-03 12:25:52 +0100 |
commit | 4860398de42bbaee9bbbdd28ccb16761d5f06e0b (patch) | |
tree | 1e84d13e33bba812c084454bca2902b6a0ec11a3 /source/html | |
parent | dceae0fa07781c1242ed15420bf3158824932c0a (diff) | |
download | mupdf-4860398de42bbaee9bbbdd28ccb16761d5f06e0b.tar.xz |
html: Fix adjacency selector matching.
Diffstat (limited to 'source/html')
-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; |