From 151b8f41f26594719fb743d0158002c6201ce821 Mon Sep 17 00:00:00 2001 From: amit kumar gupta Date: Sat, 18 May 2024 16:45:37 +0530 Subject: [PATCH] fix #654: parse attribute list correctly for self closing stop node --- spec/stopNodes_spec.js | 42 +++++++++++++++++++++++++++++++ src/xmlparser/OrderedObjParser.js | 8 ++++++ 2 files changed, 50 insertions(+) diff --git a/spec/stopNodes_spec.js b/spec/stopNodes_spec.js index ec2da913..594c0ec5 100644 --- a/spec/stopNodes_spec.js +++ b/spec/stopNodes_spec.js @@ -414,4 +414,46 @@ describe("XMLParser StopNodes", function () { // console.log(JSON.stringify(jObj, null, 4)); expect(jObj).toEqual(expected); }); + it("should parse attributes correctly for self closing stop node", function() { + + const xmlData = `