a
b
c
{"ScriptPreparationCode":"var parent = document.getElementById(\u0027test\u0027);\r\n\r\nvar store = [];\r\nparent.childNodes.forEach(function (node) {\r\n if ( node.nodeName !== \u0027#text\u0027) {\r\n store.push( { name: node.attributes.name.value } );\r\n }\r\n});","TestCases":[{"Name":"fastest iter childelements \u002B setAttribute","Code":"let elem = parent.firstElementChild;\r\ndo {\r\n elem.setAttribute(\u0027name\u0027,\u0027d\u0027);\r\n} while (elem = elem.nextElementSibling)","IsDeferred":false},{"Name":"Array item","Code":"for (let i = 0; i \u003C store.length; i\u002B\u002B) {\r\n store[i].name = \u0027d\u0027;\r\n}","IsDeferred":false},{"Name":"fastest iter childelements \u002B attributes","Code":"let elem = parent.firstElementChild;\r\ndo {\r\n elem.attributes.name.value = \u0027d\u0027;\r\n} while (elem = elem.nextElementSibling)","IsDeferred":false},{"Name":"fastest iter childelements \u002B nodeValue","Code":"let elem = parent.firstElementChild;\r\ndo {\r\n elem.nodeValue = \u0027d\u0027;\r\n} while (elem = elem.nextElementSibling)","IsDeferred":false},{"Name":"fastest iter childelements \u002B textContent","Code":"let elem = parent.firstElementChild;\r\ndo {\r\n elem.textContent = \u0027d\u0027;\r\n} while (elem = elem.nextElementSibling)","IsDeferred":false},{"Name":"Array object","Code":"for (let i = 0; i \u003C store.length; i\u002B\u002B) {\r\n store[i] = {name:\u0027d\u0027};\r\n}","IsDeferred":false},{"Name":"fastest iter childelements \u002B dataset","Code":"let elem = parent.firstElementChild;\r\ndo {\r\n elem.dataset.name = \u0027d\u0027;\r\n} while (elem = elem.nextElementSibling)","IsDeferred":false},{"Name":"fastest iter childelements \u002B getAttributeNode","Code":"let elem = parent.firstElementChild;\r\ndo {\r\n elem.getAttributeNode(\u0027name\u0027).value = \u0027d\u0027;\r\n} while (elem = elem.nextElementSibling)","IsDeferred":false}]}