{"ScriptPreparationCode":"const count = 20_000;\r\nconst testString = \u0027\u003Cdiv\u003E\u0027 \u002B (new Array(count)).fill(\u0027\u0027).join(\u0027\u003Cb\u003Ex\u003C/b\u003E\u0027) \u002B \u0027\u003C/div\u003E\u0027;","TestCases":[{"Name":".createElement() \u002B .innerHTML","Code":"function test_innerHTML() {\r\n const body = document.createElement(\u0027body\u0027);\r\n body.innerHTML = testString;\r\n return body;\r\n}","IsDeferred":false},{"Name":".createHTMLDocument() \u002B .innerHTML","Code":"function test_createHTMLDocument() {\r\n const doc = document.implementation.createHTMLDocument(\u0027\u0027);\r\n doc.body.innerHTML = testString;\r\n return doc.body;\r\n}","IsDeferred":false},{"Name":"DOMParser","Code":"function test_DOMParser() {\r\n return (new DOMParser()).parseFromString(testString, \u0027text/html\u0027).body;\r\n}","IsDeferred":false},{"Name":"Nested .createElement() \u002B .appendChild()","Code":"function test_innerHTML() {\r\n let i = -1;\r\n const div = document.createElement(\u0027div\u0027);\r\n\r\n while (\u002B\u002Bi \u003C count) {\r\n const b = document.createElement(\u0027b\u0027);\r\n b.textContent = \u0027x\u0027;\r\n div.appendChild(b);\r\n }\r\n \r\n return div;\r\n}","IsDeferred":false}]}