]> gitweb.michael.orlitzky.com - libsvgtiny.git/commit
src/svgtiny_css.c: fix lwc/dom string comparison in node_has_name()
authorMichael Orlitzky <michael@orlitzky.com>
Fri, 26 Jan 2024 01:12:22 +0000 (20:12 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Fri, 26 Jan 2024 01:12:22 +0000 (20:12 -0500)
commitc576ba06023fd9d2addaf1cb0b372dc260da1a33
treef18b5a61601d88e0f6372c99fc5d2dcbfa786936
parent83ba0cc7be0bbd283146b06096abc89802f384c7
src/svgtiny_css.c: fix lwc/dom string comparison in node_has_name()

The node_has_name() function was calling lwc_string_isequal() to test
the universal selector (a dom_string) against the given node name (an
lwc_string). Instead, it should be using dom_string_lwc_isequal(),
which is designed to do exactly that. Thanks to Michael Drake for the
suggestion.
src/svgtiny_css.c