Skip to content

Add support for libxml2 2.14 dataBlock() callback (#572)#575

Merged
dnzbk merged 1 commit intonzbgetcom:developfrom
bket:cdata
May 28, 2025
Merged

Add support for libxml2 2.14 dataBlock() callback (#572)#575
dnzbk merged 1 commit intonzbgetcom:developfrom
bket:cdata

Conversation

@bket
Copy link
Copy Markdown
Contributor

@bket bket commented May 27, 2025

On libxml2 2.13, cdataBlock is ignored (NULL), and all text + CDATA come through characters(). On libxml2 2.14+, CDATA arrives through cdataBlock, normal text through characters(), both appended to the same buffer. At element end, you get the complete merged text content — exactly like libxml2 ≤ 2.13 behavior.

@dnzbk dnzbk self-requested a review May 28, 2025 07:08
@dnzbk dnzbk linked an issue May 28, 2025 that may be closed by this pull request
1 task
On libxml2 2.13, cdataBlock is ignored (NULL), and all text + CDATA come
through characters(). On libxml2 2.14+, CDATA arrives through
cdataBlock, normal text through characters(), both appended to the same
buffer. At element end, you get the complete merged text content -
exactly like libxml2 2.13 behavior.
Copy link
Copy Markdown
Collaborator

@dnzbk dnzbk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@dnzbk dnzbk merged commit fd3f07d into nzbgetcom:develop May 28, 2025
9 checks passed
@bket bket deleted the cdata branch May 28, 2025 19:59
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.

HEAD - Failing test in FeedTests

2 participants