function dom2json() { const jsContainer = document.querySelector("#jsContainer") function domJson(dom) { var obj = { tag: getTagName(dom) } if (dom.nodeType == 1) { var attrs = getTagAttrs(dom) if (attrs) obj.attributes = attrs; console.log(dom.children) obj.children = Array.from(dom.child...