Re: [xml] xmlGetNodePath() returns invalid path for XML_DTD_NODE

On 28/01/2021 14:51, Christoph M. Becker via xml wrote:
-    if ((node == NULL) || (node->type == XML_NAMESPACE_DECL))
+    if ((node == NULL) || (node->type == XML_NAMESPACE_DECL)
+        || (node->type == XML_DTD_NODE))
          return (NULL);

This should be fixed for other node types as well. Does the attached patch work for you?


Attachment: php-bug80680.patch
Description: Text document

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]