{"ScriptPreparationCode":"var root = document.getElementById(\u0027custom-elements-wrapper\u0027);","TestCases":[{"Name":"TreeWalker","Code":"const treeWalker = document.createTreeWalker(root, NodeFilter.SHOW_ELEMENT);\r\nconst collection = [];\r\n\r\nwhile (treeWalker.nextNode()) {\r\n if (treeWalker.currentNode.nodeName.startsWith(\u0027X-\u0027)) {\r\n collection.push(treeWalker.currentNode);\r\n }\r\n}","IsDeferred":false},{"Name":"querySelectorAll","Code":"const elements = root.querySelectorAll(\u0027*\u0027);\r\nconst collection = [];\r\n\r\nfor (let i = 0, item; (item = elements[i]); i \u002B= 1) {\r\n if (item.nodeName.startsWith(\u0027X-\u0027)) {\r\n\tcollection.push(item);\r\n }\r\n}","IsDeferred":false},{"Name":"getElementsByTagName","Code":"const elements = root.getElementsByTagName(\u0027*\u0027);\r\nconst collection = [];\r\n\r\nfor (let i = 0, item; (item = elements[i]); i \u002B= 1) {\r\n if (item.nodeName.startsWith(\u0027X-\u0027)) {\r\n\tcollection.push(item);\r\n }\r\n}","IsDeferred":false}]}