WHY SO SERIOUS?
{"ScriptPreparationCode":"function tagElementsByAttribute(children) {\r\n\tfor (let i = 0, child, cls; i \u003C children.length; i\u002B\u002B) {\r\n \tchild = children[i];\r\n \tchild.setAttribute(\u0027class\u0027, child.getAttribute(\u0027class\u0027) \u002B \u0027 tagged\u0027);\r\n \tif (child.firstElementChild) {\r\n \ttagElementsByAttribute(child.children);\r\n }\r\n }\r\n}\r\n\r\nfunction tagElementsByClassName(children) {\r\n\tfor (let i = 0, child, cls; i \u003C children.length; i\u002B\u002B) {\r\n \tchild = children[i];\r\n \tchild.className \u002B= \u0027 tagged\u0027;\r\n \tif (child.firstElementChild) {\r\n \ttagElementsByClassName(child.children);\r\n }\r\n }\r\n}\r\n\r\nfunction tagElementsByClassList(children) {\r\n\tfor (let i = 0, child, cls; i \u003C children.length; i\u002B\u002B) {\r\n \tchild = children[i];\r\n \tchild.classList.add(\u0027tagged\u0027);\r\n \tif (child.firstElementChild) {\r\n \ttagElementsByClassList(child.children);\r\n }\r\n }\r\n}","TestCases":[{"Name":"get/set Attribute","Code":"tagElementsByAttribute(document.getElementById(\u0027root\u0027).children);","IsDeferred":false},{"Name":"\u002B= className","Code":"tagElementsByClassName(document.getElementById(\u0027root\u0027).children);","IsDeferred":false},{"Name":"classList.add()","Code":"tagElementsByClassList(document.getElementById(\u0027root\u0027).children);","IsDeferred":false}]}