office-gobmx/unoxml/source
Michael Stahl 9b9bc7461e tdf#153039 unoxml: replace root element of CDocument throws
XForms replace doesn't work because:

CDocument::IsChildTypeAllowed() tests that the document node does not
already have an element child, because only one is allowed - but when
called from CNode::replaceChild(), the existing child will be removed,
so that needs to be allowed to proceed (check that removed child is
also element).

(regression from commit c5db3b93ee)

Change-Id: I167de3462f4d1934dbf8404ad395349897cfd981
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145757
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-01-19 11:28:50 +00:00
..
dom tdf#153039 unoxml: replace root element of CDocument throws 2023-01-19 11:28:50 +00:00
events
rdf
service
xpath