Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /wai-aria/aria-actions/aria-actions-host-accname-excludes-target.tentative.html - WPT Dashboard Interop Dashboard
<!doctype html>
<html>
<head>
<title>aria-actions: target excluded from host accname (tentative)</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/testdriver.js"></script>
<script src="/resources/testdriver-vendor.js"></script>
<script src="/resources/testdriver-actions.js"></script>
<script src="/wai-aria/scripts/aria-utils.js"></script>
</head>
<body>
<!--
When name-from-content fires on a host that uses aria-actions, the
referenced target's text must not bleed into the host's accname.
Without the exclusion, this button would compute "Save document Edit".
-->
<button class="ex" aria-actions="edit-doc"
data-testname="aria-actions: target excluded from host accname"
data-expectedlabel="Save document">
Save document
<span id="edit-doc">Edit</span>
</button>
<script>
AriaUtils.verifyLabelsBySelector(".ex");
</script>
</body>
</html>