From a6b7486bb20a24c51c0d2ff6fe6c31325a99858a Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 30 Dec 2024 09:55:12 +0000 Subject: Add children to empty element --- lib/xml/nodes.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/xml') 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) { -- cgit v1.2.3