Fix rendering problem. to XML resources

This commit is contained in:
Grahame Grieve 2022-02-19 21:43:14 +11:00
parent a1912cd423
commit 99b8122728
1 changed files with 3 additions and 0 deletions

View File

@ -314,6 +314,9 @@ public class XhtmlComposer {
else if (node.getNodeType() == NodeType.Element) {
Element child = e.getOwnerDocument().createElementNS(XHTML_NS, node.getName());
e.appendChild(child);
for (String n : node.getAttributes().keySet()) {
child.setAttribute(n, node.getAttribute(n));
}
for (XhtmlNode c : node.getChildNodes()) {
appendChild(child, c);
}