Nanobrowser Source Code: Clickable Element Detection and Hash Deduplication
getClickableElements walks the DOM tree to find interactive elements. hashDomElement uses three-layer hashing (branch path + attributes + XPath) for unique fingerprints. A 30-line iterative stack replaces recursive DOM traversal.