Hello, World!
{"ScriptPreparationCode":"let el = document.querySelector(\u0022#hello\u0022);","TestCases":[{"Name":"innerText","Code":"let i = 1000;\r\nlet el = document.querySelector(\u0022#hello\u0022);\r\nwhile (i--) {\r\n\tel.innerText = \u0022Goodbye, cruel world!\u0022\r\n}","IsDeferred":false},{"Name":"innerHtml","Code":"let i = 1000;\r\nlet el = document.querySelector(\u0022#hello\u0022);\r\nwhile (i--) {\r\n\tel.innerHtml = \u0022Goodbye, cruel world!\u0022\r\n}","IsDeferred":false},{"Name":"innerText with Compare","Code":"let i = 1000;\r\nlet el = document.querySelector(\u0022#hello\u0022);\r\nwhile (i--) {\r\n if (el.innerHtml != \u0022Goodbye, cruel world!\u0022)\r\n {\r\n \tel.innerHtml = \u0022Goodbye, cruel world!\u0022\r\n }\r\n}","IsDeferred":false},{"Name":"innerHtml with Compare","Code":"var g_DOMParser = new DOMParser();\r\n\r\nfunction decodeHTMLSymbols(htmlText) {\r\n\treturn g_DOMParser.parseFromString(htmlText, \u0022text/html\u0022).documentElement.textContent;\r\n}\r\n\r\nlet i = 1000;\r\nlet el = document.querySelector(\u0022#hello\u0022);\r\nwhile (i--) {\r\n if (el.innerHTML != decodeHTMLSymbols(\u0022Goodbye, cruel world!\u0022))\r\n {\r\n \tel.innerHtml = \u0022Goodbye, cruel world!\u0022\r\n }\r\n}","IsDeferred":false}]}