Skip to content

Commit

Permalink
fix #470: stop-tag can have self-closing tag with same name
Browse files Browse the repository at this point in the history
  • Loading branch information
amitguptagwl committed Jul 10, 2022
1 parent 6ad40ee commit fa9a1ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xmlparser/OrderedObjParser.js
Expand Up @@ -520,7 +520,7 @@ function readStopNodeData(xmlData, tagName, i){

if (tagData) {
const openTagName = tagData && tagData.tagName;
if (openTagName === tagName) {
if (openTagName === tagName && tagData.tagExp[tagData.tagExp.length-1] !== "/") {
openTagCount++;
}
i=tagData.closeIndex;
Expand Down

0 comments on commit fa9a1ae

Please sign in to comment.