blob: 42c7de0dd3666bfc321c3ec86a5839212f2cfbc9 [file] [log] [blame]
<p>Test for <a href="">bug 26520</a>:
Accessing a DOM node from a parent window in a child iframe moves the prototype to the child iframe and resets it in the parent window.</p>
<script type="text/javascript">
if (window.testRunner)
testRunner.dumpAsText(); = 'foo';
function test(value)
document.getElementById("result").innerHTML = (value == "foo") ? "PASS" : ("FAIL: " + value);
<iframe src="resources/cross-frame-node-prototype-iframe.html"></iframe>
<form onsubmit="test(this.elements[0].foo); return false">
<input type="submit" name="fdsa">
<div id=result>FAIL: Test didn't run. Please click on the button above.</div>