{"ScriptPreparationCode":null,"TestCases":[{"Name":"Pure JavaScript","Code":"var c = document.createDocumentFragment();\r\nvar elem = document.getElementById(\u0022test\u0022);\r\nfor (var i=0; i\u003C5; i\u002B\u002B) {\r\n const inputElem = document.createElement(\u0022input\u0022);\r\n inputElem.id = \u0022inputTest\u0022 \u002B i;\r\n inputElem.name = \u0022inputTest\u0022;\r\n inputElem.type = \u0022radio\u0022;\r\n inputElem.value = \u0022value\u0022;\r\n\r\n const labelElem = document.createElement(\u0022label\u0022);\r\n labelElem.htmlFor = \u0022inputTest\u0022 \u002B i;\r\n labelElem.innerText = \u0022inputTest\u0022 \u002B i;\r\n labelElem.setAttribute(\u0022style\u0022, \u0022color: \u0022 \u002B \u0022#FF0000\u0022);\r\n\r\n const container = document.createElement(\u0022label\u0022);\r\n container.appendChild(inputElem);\r\n container.appendChild(labelElem);\r\n \r\n c.appendChild(container);\r\n elem.appendChild(c);\r\n}\r\n\r\n","IsDeferred":false},{"Name":"Strings / append","Code":"var s = \u0022\u0022;\r\nvar test = $(\u0022#test\u0022);\r\nfor (var i=0; i\u003C5; i\u002B\u002B) {\r\n s \u002B= \u0022\u003Clabel\u003E\u003Cinput id=\u0027inputTest\u0022 \u002B i \u002B \u0022\u0027 type=\u0027radio\u0027 name=\u0027inputTest\u0027 value=\u0027value\u0027\u003E\u003Clabel for=\u0027inputTest\u0022 \u002B i \u002B \u0022\u0027 style=\u0027color: #FF0000\u0027\u003EinputTest\u0022 \u002B i \u002B \u0022\u003C/label\u003E\u003C/label\u003E\u0022;\r\n\ttest.append(s);\r\n}\r\n","IsDeferred":false},{"Name":"Strings array / append","Code":"var a = [];\r\nvar test = $(\u0022#test\u0022);\r\nfor (var i=0; i\u003C5; i\u002B\u002B) {\r\n a.push(\u0022\u003Clabel\u003E\u003Cinput id=\u0027inputTest\u0022 \u002B i \u002B \u0022\u0027 type=\u0027radio\u0027 name=\u0027inputTest\u0027 value=\u0027value\u0027\u003E\u003Clabel for=\u0027inputTest\u0022 \u002B i \u002B \u0022\u0027 style=\u0027color: #FF0000\u0027\u003EinputTest\u0022 \u002B i \u002B \u0022\u003C/label\u003E\u003C/label\u003E\u0022);\r\n\ttest.append(a.join(\u0022\u0022));\r\n}\r\n","IsDeferred":false}]}