Skip to content

Commit 90a6c1d

Browse files
committed
fixes node creation issue
1 parent 80d9da7 commit 90a6c1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ts/semantic_tree/semantic_node.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,13 +236,13 @@ export class SemanticNode {
236236
const xmlNodes = nodes.map(function (x) {
237237
return x.xml(xml, brief);
238238
});
239-
const tagNode = DomUtil.createElementNS('', tag);
239+
const tagNode = xml.createElementNS('', tag);
240240
for (let i = 0, child; (child = xmlNodes[i]); i++) {
241241
tagNode.appendChild(child);
242242
}
243243
return tagNode;
244244
};
245-
const node = DomUtil.createElementNS('', this.type);
245+
const node = xml.createElementNS('', this.type);
246246
if (!brief) {
247247
this.xmlAttributes(node);
248248
}

0 commit comments

Comments
 (0)