{"ScriptPreparationCode":"const targetElem = document.createElement( \u0027DIV\u0027 );\r\ntargetElem.id = \u0027target\u0027;\r\n\r\ntargetElem.innerHTML = \u0060\r\n\t\u003Cdiv\u003E\r\n\t\t\u003Cspan\u003EChild 1\u003C/span\u003E\r\n\t\u003C/div\u003E\r\n\t\u003Cdiv\u003E\r\n\t\t\u003Cspan\u003EChild 2\u003C/span\u003E\r\n\t\u003C/div\u003E\r\n\t\u003Cdiv\u003E\r\n\t\t\u003Cspan\u003EChild 3\u003C/span\u003E\r\n\t\u003C/div\u003E\r\n\u0060;\r\n\r\ndocument.body.appendChild( targetElem );","TestCases":[{"Name":"innerHTML","Code":"document.getElementById( \u0027target\u0027 ).innerHTML = \u0060\r\n\t\u003Cdiv\u003E\r\n\t\t\u003Cspan\u003EChild 4\u003C/span\u003E\r\n\t\u003C/div\u003E\r\n\u0060;","IsDeferred":false},{"Name":"insertAdjacentHTML with remove","Code":"const t = document.getElementById( \u0027target\u0027 );\r\nconst l = t.children.length;\r\nfor (let i = 0; i \u003C l; i\u002B\u002B) {\r\n t.children[i].remove();\r\n}\r\nt.insertAdjacentHTML( \u0027afterbegin\u0027, \u0060\r\n\t\u003Cdiv\u003E\r\n\t\t\u003Cspan\u003EChild 4\u003C/span\u003E\r\n\t\u003C/div\u003E\r\n\u0060 );","IsDeferred":false}]}