6 var doc
= window
.frames
[0].document
;
7 var ok
= (doc
.form1
== doc
.getElementById("test1"));
8 window
.parent
.postMessage(
9 JSON
.stringify({ ok
: ok
,
10 reason
: "Should be able to get named items by name" }),
12 window
.parent
.postMessage("finish", "*");
15 window
.onmessage = function(ev
) {
16 if (ev
.data
== "start") {
21 document
.domain
= "example.org";
25 <iframe id=
"subframe"></iframe>
27 document
.getElementById("subframe").src
=
28 "http://test2.example.org" +
29 location
.pathname
.replace(/file1_bug629227.html/, "file2_bug629227.html");