Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 8 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /html/webappapis/scripting/events/event-handler-attributes-body-window.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>HTMLBodyElement event handlers: reflection from document.body</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/WebIDLParser.js"></script>
<script src="resources/event-handler-body.js"></script>
<body>
<script>
setup({ explicit_done: true });
handlersListPromise.then(({ shadowedHandlers, notShadowedHandlers }) => {
const altBody = document.createElement("body");
runEventHandlerReflectionTest(shadowedHandlers, notShadowedHandlers, "document.body", document.body, altBody, window, "body", "alternative body", "window");
done();
});
</script>