html>`
    , type);

    assert_equals(doc.x, undefined, "script must not be executed on the inner document");
    assert_equals(document.x, undefined, "script must not be executed on the outer document");

    const body = doc.documentElement.children[1];
    assert_equals(body.localName, "body");
    assert_equals(body.children[1].localName, "noscript");
    assert_equals(body.children[1].children.length, 2);
    assert_equals(body.children[1].children[0].localName, "p");
    assert_equals(body.children[1