Skip to content

Localize keepBlanks hack to xmlParseBalancedChunkMemory - #279

Open
nwellnhof wants to merge 1 commit into
cpan-authors:mainfrom
nwellnhof:keep-blanks-hack
Open

nwellnhof wants to merge 1 commit into
cpan-authors:mainfrom
nwellnhof:keep-blanks-hack

Conversation

@nwellnhof

Copy link
Copy Markdown
Contributor

The keepBlanks hack is only required for xmlParseBalancedChunkMemory which doesn't take parser options. Only change the deprecated global before calling this function and restore it afterwards to avoid unwanted side effects.

This reverts all code changes from a0183a0 which only doubled down on the original, flawed approach and introduced another deprecated access to the parser context struct.

The keepBlanks hack is only required for xmlParseBalancedChunkMemory
which doesn't take parser options. Only change the deprecated global
before calling this function and restore it afterwards to avoid
unwanted side effects.

This reverts all code changes from a0183a0 which only doubled down
on the original, flawed approach and introduced another deprecated
access to the parser context struct.
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.

1 participant