blob: 08cc6a186711f4067db9c867b1d1a5597facc29c [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<script src="../../resources/js-test.js"></script>
<input type="radio" name="foo" />
<script>
description("This test checks that the checked attribute can be set on a disconnected radio button inside a shadow root. This test passes if it does not crash.");
input = document.querySelector("input")
const container = document.createElement("div");
container.attachShadow({ mode: "open" }).appendChild(input);
input.checked = true;
shouldBeTrue("input.checked");
</script>
</body>
</html>