{"ScriptPreparationCode":"var element = document.getElementById(\u0022foo\u0022);\r\nvar i = 1000;\r\nwhile (i--) {\r\n \telement.append(document.createElement(\u0027div\u0027));\r\n}","TestCases":[{"Name":"attribute","Code":"var element = document.getElementById(\u0022foo\u0022);\r\nfor (const div of element.querySelectorAll(\u0027div\u0027)) {\r\n\tdiv.setAttribute(\u0022data-foo\u0022, \u00221\u0022);\r\n}\r\ndocument.querySelectorAll(\u0027[data-foo]\u0027).forEach(div =\u003E div.removeAttribute(\u0027data-is-foo\u0027));","IsDeferred":false},{"Name":"classes","Code":"var element = document.getElementById(\u0022foo\u0022);\r\nfor (const div of element.querySelectorAll(\u0027div\u0027)) {\r\n\tdiv.classList.add(\u0022is_foo\u0022, \u0022foo_type_1\u0022);\r\n}\r\nelement.querySelectorAll(\u0027.is_foo\u0027).forEach(element =\u003E element.classList.remove(\u0027is_foo\u0027, \u0027foo_type_1\u0027));","IsDeferred":false}]}