<script> | |
if (window.layoutTestController) { | |
layoutTestController.dumpAsText(); | |
layoutTestController.dumpChildFramesAsText(); | |
} | |
function log(message) | |
{ | |
var console = document.getElementById("console"); | |
console.appendChild(document.createTextNode(message + "\n")); | |
} | |
function dumpDOM(doc) | |
{ | |
log(doc.documentElement.innerHTML); | |
} | |
</script> | |
<iframe onload="dumpDOM(this.contentDocument)" src="resources/xslt-text.xml"></iframe> | |
<pre id="console"></pre> |