{"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":"A - innerHTML","Code":"document.getElementById( \u0027target\u0027 ).innerHTML \u002B= \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":"B - insertAdjacentHTML","Code":"document.getElementById( \u0027target\u0027 ).insertAdjacentHTML( \u0027beforeend\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},{"Name":"C - createElement","Code":"const newChild = document.createElement( \u0027DIV\u0027 );\r\nconst newChildChild = document.createElement( \u0027SPAN\u0027 );\r\n\r\nnewChildChild.innerHTML = \u0027Child 4\u0027;\r\n\r\nnewChild.appendChild( newChildChild );\r\n\r\ndocument.getElementById( \u0027target\u0027 ).appendChild( newChild );\r\n","IsDeferred":false}]}