Skip to content

70ad8fe6c2 breaks XML-DOM #212

@jkeenan

Description

@jkeenan

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.

@tjmather

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions