diff options
| author | Michael Williamson <mike@zwobble.org> | 2024-12-30 09:55:12 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2024-12-30 09:55:12 +0000 |
| commit | a6b7486bb20a24c51c0d2ff6fe6c31325a99858a (patch) | |
| tree | bbc19642c6bba220db0db3df20a14d0185f96d6b | |
| parent | 888a3bd67f658e8a3894eb5e2ece3c14cd2e9179 (diff) | |
Add children to empty element
| -rw-r--r-- | lib/xml/nodes.js | 3 |
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) { |
