Do not reuse the same loop variable inside nested loop of affixes

issue8314
review253421002
This commit is contained in:
Cédric Krier committed 2019-05-02 12:56:40 +02:00
1 parent d6ab245cc1
commit 6970729b7d
1 file changed
+3 -3
+3 -3
View File
@@ -30,11 +30,11 @@
}
var affix, affix_attributes;
var affixes = node.childNodes;
for (i = 0; i < affixes.length; i++) {
for (var i = 0; i < affixes.length; i++) {
affix = affixes[i];
affix_attributes = {};
for (var i = 0, len = affix.attributes.length; i < len; i++) {
var attribute = affix.attributes[i];
for (var j = 0, len = affix.attributes.length; j < len; j++) {
var attribute = affix.attributes[j];
affix_attributes[attribute.name] = attribute.value;
}
if (!affix_attributes.name) {