js"></script>
<script src="support/create-realm.js"></script>

<body>
<script>
promise_test(async t => {
    const other = await createRealm(t);
    const notElement = Object.create(other.HTMLElement.prototype);

    assert_throws_js(other.TypeError, () => { Object.create(other.document).head; });
    assert_throws_js(other.TypeError, () => { Object.getOwnPropertyDescriptor(other.HTMLElement.prototype, "title").get.call(notElement); });
    assert_throws_js(other.TypeError, () => { Reflect.get(other.documen