commit | 85b1792e37b131e7a51af98a37f92472e8de5f3f | [log] [tgz] |
---|---|---|
author | Nick Wellnhofer <wellnhofer@aevum.de> | Tue May 18 20:08:28 2021 +0200 |
committer | Nick Wellnhofer <wellnhofer@aevum.de> | Fri May 21 12:19:25 2021 +0200 |
tree | 299f43debc2c56cc6d7d6d23cd0ef889bbce6531 | |
parent | a7b9f3ebdfc761d6f21c83cab976f785633bf75f [diff] |
Work around lxml API abuse Make xmlNodeDumpOutput and htmlNodeDumpFormatOutput work with corrupted parent pointers. This used to work with the old recursive code but the non-recursive rewrite required parent pointers to be set correctly. Unfortunately, lxml relies on the old behavior and passes subtrees with a corrupted structure. Fall back to a recursive function call if an invalid parent pointer is detected. Fixes #255.