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