Skip to content

Commit ea51133

Browse files
author
Coty Condry
committed
Update deprecated attribute.nodeValue to attribute.value
1 parent e34aecf commit ea51133

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/xml2json.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
child['@attributes'] = {};
3939
for(var j in node.attributes) {
4040
var attribute = node.attributes.item(j);
41-
child['@attributes'][attribute.nodeName] = attribute.nodeValue;
41+
child['@attributes'][attribute.nodeName] = attribute.value;
4242
}
4343
}
4444

0 commit comments

Comments
 (0)