|
1 <!DOCTYPE HTML> |
|
2 <html> |
|
3 <head> |
|
4 <script> |
|
5 function test_func() { |
|
6 var bar = new Option(); |
|
7 parent.is(bar.ownerDocument, document, |
|
8 "Unexpected document for our new option"); |
|
9 bar = new Image(); |
|
10 parent.is(bar.ownerDocument, document, |
|
11 "Unexpected document for our new image"); |
|
12 bar = new parent.Option(); |
|
13 parent.is(bar.ownerDocument, parent.document, |
|
14 "Unexpected document for parent new option"); |
|
15 bar = new parent.Image(); |
|
16 parent.is(bar.ownerDocument, parent.document, |
|
17 "Unexpected document for parent new image"); |
|
18 parent.isnot(parent.document, document, "Documents should be different"); |
|
19 } |
|
20 </script> |
|
21 </head> |
|
22 <html> |
|
23 |
|
24 |