- From: Boris Zbarsky <notifications@github.com>
- Date: Wed, 26 Oct 2016 18:31:45 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
Received on Thursday, 27 October 2016 01:32:37 UTC
`document.close()` can definitely cause nodes to be added to the DOM in general. Simple testcase (for some values of "simple"): <!DOCTYPE html> <iframe></iframe> <script> onload = function() { var doc = frames[0].document; var kids = doc.getElementsByTagName("*"); doc.open(); console.log(kids.length); doc.write("<span"); console.log(kids.length); doc.close(); console.log(kids.length); } </script> That `close()` call just added the html, head, and body elements. Now this isn't general node addition, so maybe it doesn't need custom element reactions anyway? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/webcomponents/issues/597#issuecomment-256523137
Received on Thursday, 27 October 2016 01:32:37 UTC