From: Michael Orlitzky Date: Sun, 19 Nov 2023 16:39:13 +0000 (-0500) Subject: src/svgtiny.c: use case-sensitive comparisons for SVG element names X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;ds=inline;h=099cae0989f0ef3db52de99fb0d1e562465f5a02;p=libsvgtiny.git src/svgtiny.c: use case-sensitive comparisons for SVG element names SVG is XML and its element names are therefore case-sensitive. We switch to case-sensitive comparisons to avoid rendering elements (e.g. ) that other SVG clients (e.g. Firefox) will not. --- diff --git a/src/svgtiny.c b/src/svgtiny.c index 165fc21..98a84d4 100644 --- a/src/svgtiny.c +++ b/src/svgtiny.c @@ -703,7 +703,7 @@ svgtiny_code svgtiny_parse(struct svgtiny_diagram *diagram, dom_node_unref(document); return svgtiny_LIBDOM_ERROR; } - if (!dom_string_caseless_lwc_isequal(svg_name, svg_name_lwc)) { + if (!dom_string_lwc_isequal(svg_name, svg_name_lwc)) { lwc_string_unref(svg_name_lwc); dom_string_unref(svg_name); dom_node_unref(svg); @@ -945,7 +945,7 @@ svgtiny_code svgtiny_preparse_styles(dom_element *svg, return svgtiny_LIBDOM_ERROR; } - if (dom_string_caseless_isequal(state.interned_style, + if (dom_string_isequal(state.interned_style, nodename)) { /* We have a