From 2b16dbd8f73269cb15ca61ece75cf8d2d196ed28 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 19 Sep 2017 17:17:12 +0200 Subject: Fix 698558: Handle non-tags in tag name comparisons. Use fz_xml_is_tag instead of fz_xml_tag && !strcmp idiom. --- source/html/css-apply.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/html') diff --git a/source/html/css-apply.c b/source/html/css-apply.c index de554908..6a91df0d 100644 --- a/source/html/css-apply.c +++ b/source/html/css-apply.c @@ -328,7 +328,7 @@ match_selector(fz_css_selector *sel, fz_xml *node) if (sel->name) { - if (strcmp(sel->name, fz_xml_tag(node))) + if (!fz_xml_is_tag(node, sel->name)) return 0; } -- cgit v1.2.3