<svgxmlns="http://www.w3.org/2000/svg"> <script> document.documentElement.appendChild(document.createElementNS('http://www.w3.org/1999/xhtml', 'iframe')); var b = top.xof.parentNode; if (t = b.childNodes[1]) { // It appears that something is holding the table element alive // because the node destructor didn't run and its siblings' refs // to it weren't cleared, so it's still reachable during node // traversals. That'd crash when insertedInto notifications try to // use the node's parentOrShadowHostNode(), so make sure it has // a parent, and use a spare document to avoid traversal loops. top.frames[1].document.body.appendChild(t); } frames[0].onunload = function() { document.documentElement.appendChild(b); b.insertBefore(document.createElement('x'), top.xof); } </script> <elementa="1"a="2" /> </svg>