2008-11-18 14:54:36 -08:00
|
|
|
<!DOCTYPE HTML>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<script>
|
|
|
|
function test_func() {
|
|
|
|
var bar = new Option();
|
2008-11-18 17:00:15 -08:00
|
|
|
parent.is(bar.ownerDocument, document,
|
2008-11-18 14:54:36 -08:00
|
|
|
"Unexpected document for our new option");
|
|
|
|
bar = new Image();
|
2008-11-18 17:00:15 -08:00
|
|
|
parent.is(bar.ownerDocument, document,
|
2008-11-18 14:54:36 -08:00
|
|
|
"Unexpected document for our new image");
|
2008-11-18 17:00:15 -08: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 14:54:36 -08:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<html>
|
|
|
|
|
|
|
|
|