summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2024-12-30 09:55:12 +0000
committerMichael Williamson <mike@zwobble.org>2024-12-30 09:55:12 +0000
commita6b7486bb20a24c51c0d2ff6fe6c31325a99858a (patch)
treebbc19642c6bba220db0db3df20a14d0185f96d6b /lib
parent888a3bd67f658e8a3894eb5e2ece3c14cd2e9179 (diff)
Add children to empty element
Diffstat (limited to 'lib')
-rw-r--r--lib/xml/nodes.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/xml/nodes.js b/lib/xml/nodes.js
index 2c77d4d..567fde0 100644
--- a/lib/xml/nodes.js
+++ b/lib/xml/nodes.js
@@ -20,7 +20,8 @@ var emptyElement = exports.emptyElement = {
firstOrEmpty: function() {
return emptyElement;
},
- attributes: {}
+ attributes: {},
+ children: []
};
function Element(name, attributes, children) {