<!DOCTYPE HTML>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<script>
test(() => {
var bar = document.createElement("div");
var shadowRoot = bar.attachShadow({mode: 'open'});
bar.computedName;
}, "No crash when getting computed name from a node with a shadow root not attached to a document");
test(() => {
var bar = document.createElement("div");
var shadowRoot = bar.attachShadow({mode: 'open'});
bar.computedRole;
}, "No crash when getting computed role from a node with a shadow root not attached to a document");
</script>