From: tokyo4j Date: Sun, 3 Aug 2025 07:09:18 +0000 (+0900) Subject: common/xml: parse CDATA as text X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=00ed40454dc52392bade3dac69a27af30c13f00a;p=proto%2Flabwc.git common/xml: parse CDATA as text Before this patch, was ignored in many cases. For example, this didn't work: --- diff --git a/src/common/xml.c b/src/common/xml.c index df8c26e4..797af9c0 100644 --- a/src/common/xml.c +++ b/src/common/xml.c @@ -138,7 +138,8 @@ lab_xml_node_is_leaf(xmlNode *node) return false; } for (xmlNode *child = node->children; child; child = child->next) { - if (child->type != XML_TEXT_NODE) { + if (child->type != XML_TEXT_NODE + && child->type != XML_CDATA_SECTION_NODE) { return false; } }