{"ScriptPreparationCode":"var inner = document.getElementById(\u0022inner\u0022);\r\nvar outer = document.getElementById(\u0022outer\u0022);\r\nvar inner2 = document.getElementById(\u0022inner2\u0022);\r\nvar outer2 = document.getElementById(\u0022outer2\u0022);\r\n","TestCases":[{"Name":"jQuery.contains()","Code":"var x = jQuery.contains(outer, inner)\r\nvar y = jQuery.contains(outer, inner2)\r\nvar z = jQuery.contains(outer2, inner)\r\nvar a = jQuery.contains(outer2, inner2)\r\n","IsDeferred":false},{"Name":"Node.contains()","Code":"var x = outer.contains(inner)\r\nvar y = outer.contains(inner2)\r\nvar z = outer2.contains(inner)\r\nvar a = outer2.contains(inner2)\r\n","IsDeferred":false},{"Name":"reverse","Code":"function reverseQuerySelector(element, match = null) {\r\n\t\tif (element === document.body) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\twhile (true) {\r\n\t\t\tif (element === match) {\r\n\t\t\t\treturn element;\r\n\t\t\t}\r\n\t\t\tif (element.parentNode) {\r\n\t\t\t\telement = element.parentNode;\r\n\t\t\t\tif (\r\n\t\t\t\t\telement === document.body\r\n\t\t\t\t) {\r\n\t\t\t\t\treturn null;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t}\r\n}\r\nvar x = reverseQuerySelector(outer, inner);\r\nvar y = reverseQuerySelector(outer, inner2);\r\nvar z = reverseQuerySelector(outer2, inner);\r\nvar a = reverseQuerySelector(outer2, inner2);\r\n","IsDeferred":false}]}