forked from chorny/XML-Parser
-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
Recent changes to XML-Parser have caused failures in the test suites of at least 3 CPAN distributions for which XML-Parser is a dependency. This message covers breakage in XML-DOM. See, e.g.,
https://www.cpantesters.org/cpan/report/98c29408-2473-11f1-ba0e-845d09e497d4
Bisection indicates that this breakage first appears when XML::DOM is built on top of a given perl executable and XML::Parser as of commit 70ad8fe.
commit 70ad8fe6c20f3bd42efc3b8e6f3d180b9c331acd
Author: Toddr Bot <toddbot@rinaldo.us>
AuthorDate: Mon Mar 16 21:55:11 2026 +0000
Commit: Toddr Bot <toddbot@rinaldo.us>
CommitDate: Mon Mar 16 21:55:11 2026 +0000
fix: route character data after root element to Char handler
Libexpat sends character data (whitespace/newlines) that appears after
the root element's closing tag to the DefaultHandler instead of the
CharacterDataHandler. This is unexpected when a Char handler is
registered — users expect all character data to go through Char.
In defaulthandle(), detect character data (doesn't start with '<' or
'&') and forward it to the Char handler when one is registered.
Fixes https://github.com/cpan-authors/XML-Parser/issues/47
(rt.cpan.org #46685)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This problem would have first been visible on CPAN with XML-Parser-2.48.
This bisection was executed on both Linux and confirmed on FreeBSD.
Can you investigate? Thank you very much.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels