Skip Menu |
 

This queue is for tickets about the XML-LibXSLT CPAN distribution.

Report information
The Basics
Id: 131146
Status: new
Priority: 0/
Queue: XML-LibXSLT

People
Owner: Nobody in particular
Requestors: wellnhofer [...] aevum.de
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Returning documents from XPath extension functions
Date: Fri, 6 Dec 2019 16:24:17 +0100
To: bug-XML-LibXSLT [...] rt.cpan.org
From: Nick Wellnhofer <wellnhofer [...] aevum.de>
Download (untitled) / with headers
text/plain 547b
The code in LibXSLT__function which handles XPath extension functions wraps returned nodes in another document for memory management reasons. If one of the returned nodes happens to be a document node, the document will be wrapped inside another document. This violates libxml2's assumption that document nodes can only be at the root of a tree and can lead to issues like https://gitlab.gnome.org/GNOME/libxml2/issues/132 The cleanest solution is to copy the document's children to the RVT and return the RVT in the result node list.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.