GNOME Bugzilla – Bug 744624
XML_XINCLUDE_START attributes not preserved (w/patch)
Last modified: 2021-07-05 13:23:54 UTC
Created attachment 296977 [details] [review] proposed fix Changeset 3e62adbe39f2083c9c2cd3330c320227818fd361 "Adding various checks on node type though the API" reintroduces bug #407389: When subtrees are cloned, XML_XINCLUDE_START nodes lose their href and xpointer attributes. Since cloning is also used by xmlXIncludeLoadDoc, all nested xincludes have no href or xpointer attributes after parsing. Attached diff copy_xinclude_props.diff fixes this regression. Also attached is get_xinclude_props.diff which enables various attribute-related functions (like xmlHasProp) to also operate on XML_XINCLUDE_START nodes. But this is actually unrelated to the bug, and only a feature suggestion :)
Created attachment 296978 [details] [review] attribute-related functions for xinclude nodes second attachment
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new ticket at https://gitlab.gnome.org/GNOME/libxml2/-/issues/ Thank you for your understanding and your help.