Loading homepage
Compare two DOM subtrees structurally, including attributes, text, comments, and child order.
Input: identicalDOMTrees(element, element.cloneNode(true)) Output: true
Input: identicalDOMTrees(document.createTextNode("hello"), document.createTextNode("hello ")) Output: false
Implement the exported function in index.js or index.ts. Tests provide fixtures for the required behavior.