Skip to content

Commit

Permalink
Merge pull request #7027 from IronBlood/fix/7019-index-of-attributes
Browse files Browse the repository at this point in the history
fix: add the missing index of `attributes`
  • Loading branch information
limzykenneth authored May 14, 2024
2 parents 23f0619 + 4caf620 commit 61d8eb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/io/p5.XML.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ p5.XML = class {
const newDOM = xmlDoc.createElement(name);
newDOM.innerHTML = content;
for (let i = 0; i < attributes.length; i++) {
newDOM.setAttribute(attributes[i].nodeName, attributes.nodeValue);
newDOM.setAttribute(attributes[i].nodeName, attributes[i].nodeValue);
}
this.DOM = newDOM;
}
Expand Down

0 comments on commit 61d8eb8

Please sign in to comment.