Skip to content

Commit 61d8eb8

Browse files
authored
Merge pull request #7027 from IronBlood/fix/7019-index-of-attributes
fix: add the missing index of `attributes`
2 parents 23f0619 + 4caf620 commit 61d8eb8

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
@@ -234,7 +234,7 @@ p5.XML = class {
234234
const newDOM = xmlDoc.createElement(name);
235235
newDOM.innerHTML = content;
236236
for (let i = 0; i < attributes.length; i++) {
237-
newDOM.setAttribute(attributes[i].nodeName, attributes.nodeValue);
237+
newDOM.setAttribute(attributes[i].nodeName, attributes[i].nodeValue);
238238
}
239239
this.DOM = newDOM;
240240
}

0 commit comments

Comments
 (0)