{"ScriptPreparationCode":"var elems = [\r\n document.createElement(\u0022hr\u0022),\r\n text(document.createElement(\u0022b\u0022), \u0022Links:\u0022),\r\n document.createTextNode(\u0022 \u0022),\r\n text(document.createElement(\u0022a\u0022), \u0022Link A\u0022),\r\n document.createTextNode(\u0022 | \u0022),\r\n text(document.createElement(\u0022a\u0022), \u0022Link B\u0022),\r\n document.createTextNode(\u0022 | \u0022),\r\n text(document.createElement(\u0022a\u0022), \u0022Link C\u0022)\r\n];\r\n\r\nfunction text(node, txt) {\r\n node.appendChild(document.createTextNode(txt));\r\n return node;\r\n}\r\n\r\nvar div = document.getElementsByTagName(\u0022div\u0022);","TestCases":[{"Name":"DocumentFragment append","Code":"const fragment = document.createDocumentFragment();\r\n\r\nfor (let e = 0; e \u003C elems.length; e\u002B\u002B) {\r\n fragment.appendChild(elems[e]);\r\n}\r\n\r\nfor (let i = 0; i \u003C div.length; i\u002B\u002B) {\r\n div[i].appendChild(fragment.cloneNode(true));\r\n}","IsDeferred":false},{"Name":"Normal append","Code":"for (let i = 0; i \u003C div.length; i\u002B\u002B) {\r\n for (let e = 0; e \u003C elems.length; e\u002B\u002B) {\r\n div[i].appendChild(elems[e].cloneNode(true));\r\n }\r\n}","IsDeferred":false}]}