1 <script> 2 var doc = document.implementation.createHTMLDocument('a'); 3 var b = document.createElement('b'); 4 // Give it a node list cache on document 5 b.childNodes; 6 7 // Attach it to doc to update m_document 8 doc.adoptNode(b); 9 doc.body.appendChild(b); 10 doc.body.removeChild(b); 11 </script> 12 <p>Close the document to see if there's an assertion failure.</p>