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