diff options
Diffstat (limited to 'testing/web-platform/tests/conformance-checkers/html-aria/author-requirements/567.html')
-rw-r--r-- | testing/web-platform/tests/conformance-checkers/html-aria/author-requirements/567.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/web-platform/tests/conformance-checkers/html-aria/author-requirements/567.html b/testing/web-platform/tests/conformance-checkers/html-aria/author-requirements/567.html new file mode 100644 index 000000000..ce4c8d4c4 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-aria/author-requirements/567.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <title>A <div> with role "button" followed by a modification to the value of "checkbox".</title> + <script type="text/javascript"> + function changeRole (/* Element */ element, /* String */ newRole) { + element.setAttribute ('role', newRole); + element.innerHTML = "This <div> has role '" + newRole + "'"; + } + </script> + </head> + <body> + <div role="button" id="test" tabindex="0" onclick="changeRole (this, 'checkbox');" onkeydown="changeRole (this, 'checkbox');">This <div> has role 'button'</div> + <p> + <button onclick="changeRole (document.getElementById ('test'), 'checkbox')" type="button">Change Role</button> + <button onclick="window.location.reload()" type="button">Reload Page</button> + </p> + </body> +</html> |