http://bugs.winehq.org/show_bug.cgi?id=58802
Bug ID: 58802 Summary: Inserting XML document fragment adds the fragment instead of its content. Product: Wine Version: 9.0 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: msxml3 Assignee: wine-bugs@winehq.org Reporter: nerbs.dev@gmail.com Distribution: ---
When MSXML's IXMLDOMDocumentFragment is inserted into the children of another node, the fragment's content should be inserted rather than the fragment node itself. When using Wine's MSXML3 implementation though, the fragment is inserted into the XML DOM hierarchy.
As an example, inserting a fragment (represented here as an element with no name) like this: <> <child2 /> </>
At the end of an element's children: <root> <child1 /> </root>
Should produce this XML: <root> <child1 /> <child2 /> </root>
But instead produces: <root> <child1 /> <> <child2 /> </> </root>
I first noticed this while diagnosing some test failures for HexEdit while running under Wine 9.0, and then created a smaller reproduction of the issue. - Reproduction code: https://github.com/the-nerbs/wine-repros/tree/5f36fc0f493caf9972836f9630aae3... - Built 32-bit repro exe: https://github.com/the-nerbs/wine-repros/blob/5f36fc0f493caf9972836f9630aae3... - Original application code: https://github.com/the-nerbs/HexEdit
The reproduction code exhibits the same issue when built as both 32 and 64 bit, running under Wine 9.0. I have also reproduced the issue on a 32-bit build of a fresh pull of the Wine sources.