Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fallback to toString() when toStringC14N(1) gives an empty string #17

Merged
merged 1 commit into from
Jan 5, 2024
Merged

fallback to toString() when toStringC14N(1) gives an empty string #17

merged 1 commit into from
Jan 5, 2024

Conversation

eseyman
Copy link

@eseyman eseyman commented Jun 14, 2021

With libxml2 2.9.12, toStringC14N(1) gives an empty string when parsing an empty tree. In these cases, it makes more sense to fallback to toString().

Fixes #16

@level420
Copy link

level420 commented Jan 2, 2024

@tokuhirom would be very kind of you if you could commit this PR and publish a new version on CPAN. Thank you!

@tokuhirom tokuhirom merged commit bd63675 into tokuhirom:master Jan 5, 2024
@level420
Copy link

level420 commented Jan 6, 2024

@tokuhirom thank you for merging. It would be nice to have this version now published on CPAN. Thank you in advance!

@tokuhirom
Copy link
Owner

i will do it asap

tokuhirom added a commit that referenced this pull request Jan 9, 2024
Changelog diff is:

diff --git Changes Changes
index 050dadd..ffa5d96 100644
--- Changes
+++ Changes
@@ -2,6 +2,13 @@ Revision history for Perl extension HTML::TreeBuilder::LibXML
 
 {{$NEXT}}
 
+0.27 2024-01-09T06:19:12Z
+
+    - don't have the parser string blanks by default #15
+      #15
+    - fallback to toString() when toStringC14N(1) gives an empty string #17
+      #17
+
 0.26 2016-10-19T15:03:00Z
 
     - Improve `HTML::TreeBuilder::LibXML::Node->new` compatibility
@tokuhirom
Copy link
Owner

tokuhirom commented Jan 9, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

t/05_empty.t fails with libxml2 2.9.12
3 participants