summaryrefslogtreecommitdiff
path: root/source/html
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2017-09-19 17:17:12 +0200
committerTor Andersson <tor.andersson@artifex.com>2017-09-19 17:19:41 +0200
commit2b16dbd8f73269cb15ca61ece75cf8d2d196ed28 (patch)
treec2077935809f028eccb5267c707c460310db4cf9 /source/html
parent0f0fbc07d9be31f5e83ec5328d7311fdfd8328b1 (diff)
downloadmupdf-2b16dbd8f73269cb15ca61ece75cf8d2d196ed28.tar.xz
Fix 698558: Handle non-tags in tag name comparisons.
Use fz_xml_is_tag instead of fz_xml_tag && !strcmp idiom.
Diffstat (limited to 'source/html')
-rw-r--r--source/html/css-apply.c2
1 files changed, 1 insertions, 1 deletions
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;
}