3 <script language=
"javascript">
4 function print(message
)
6 var paragraph
= document
.createElement("p");
7 paragraph
.appendChild(document
.createTextNode(message
));
8 document
.getElementById("console").appendChild(paragraph
);
12 if(window
.layoutTestController
)
13 layoutTestController
.dumpAsText();
15 objectInsideForm
= document
.getElementById("objectInsideForm");
16 objectNotInsideForm
= document
.getElementById("objectNotInsideForm");
18 form
= document
.getElementById("form");
20 if(objectInsideForm
.form
== form
)
25 if(objectNotInsideForm
.form
== null)
33 <body onload=
"test();">
34 <p>This test attempts to access an HTMLObjectElement's form property. The first test accesses the form property of an object which is inside of a form. The second test accesses the form property of an object which is not inside of a form
</p>
36 <div id=
"console"></div>
39 <object id=
"objectInsideForm">
43 <object id=
"objectNotInsideForm">