Files
sousa-gecko/testing/web-platform/tests/html/semantics/interactive-elements/the-dialog-element/dialog-requestclose-2.html
T
Luke Warlow 95bda84c2d Bug 2039520 [wpt PR 59877] - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=311746, a=testonly
Automatic update from web-platform-tests
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=311746 (#59877)
--

wpt-commits: 6fb724af7b721f91aeef4ce237ba90112408fd68
wpt-pr: 59877
2026-05-15 21:09:50 +00:00

19 lines
735 B
HTML

<!doctype html>
<meta charset="utf-8">
<link rel=help href="https://html.spec.whatwg.org/multipage/interactive-elements.html#dom-dialog-request-close">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/testdriver.js"></script>
<script src="/resources/testdriver-actions.js"></script>
<script src="/resources/testdriver-vendor.js"></script>
<link rel="author" href="mailto:lwarlow@igalia.com" />
<script>
test(() => {
const dialog = document.createElement("dialog");
dialog.setAttribute("open", "");
dialog.requestClose();
assert_true(dialog.open);
}, "requestClose() should not close the dialog when disconnected");
</script>