Skip to content

Commit 4caf620

Browse files
committed
fix: add the missing index of attributes
1 parent b11b613 commit 4caf620

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/io/p5.XML.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ p5.XML = class {
173173
const newDOM = xmlDoc.createElement(name);
174174
newDOM.innerHTML = content;
175175
for (let i = 0; i < attributes.length; i++) {
176-
newDOM.setAttribute(attributes[i].nodeName, attributes.nodeValue);
176+
newDOM.setAttribute(attributes[i].nodeName, attributes[i].nodeValue);
177177
}
178178
this.DOM = newDOM;
179179
}

0 commit comments

Comments
 (0)