2008-11-18 22:54:36 +00:00
|
|
|
<!DOCTYPE HTML>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<script>
|
|
|
|
function test_func() {
|
|
|
|
var bar = new Option();
|
2008-11-19 01:00:15 +00:00
|
|
|
parent.is(bar.ownerDocument, document,
|
2008-11-18 22:54:36 +00:00
|
|
|
"Unexpected document for our new option");
|
|
|
|
bar = new Image();
|
2008-11-19 01:00:15 +00:00
|
|
|
parent.is(bar.ownerDocument, document,
|
2008-11-18 22:54:36 +00:00
|
|
|
"Unexpected document for our new image");
|
2008-11-19 01:00:15 +00:00
|
|
|
bar = new parent.Option();
|
|
|
|
parent.is(bar.ownerDocument, parent.document,
|
|
|
|
"Unexpected document for parent new option");
|
|
|
|
bar = new parent.Image();
|
|
|
|
parent.is(bar.ownerDocument, parent.document,
|
|
|
|
"Unexpected document for parent new image");
|
|
|
|
parent.isnot(parent.document, document, "Documents should be different");
|
2008-11-18 22:54:36 +00:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<html>
|
|
|
|
|
|
|
|
|