Skip to content

Commit

Permalink
Remove aria-relevant tests
Browse files Browse the repository at this point in the history
This attribute was removed from the ARIA spec in 2020: see w3c/aria#1261 and w3c/aria#1267.
  • Loading branch information
domenic committed Jan 5, 2024
1 parent c478055 commit 433812e
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 120 deletions.
107 changes: 0 additions & 107 deletions core-aam/aria-relevant-manual.html

This file was deleted.

12 changes: 12 additions & 0 deletions custom-elements/ElementInternals-accessibility-historical.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<meta charset="utf-8">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>

<script>
"use strict";

test(() => {
assert_false("ariaRelevant" in ElementInternals.prototype);
});
</script>
1 change: 0 additions & 1 deletion custom-elements/ElementInternals-accessibility.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
"ariaPosInSet",
"ariaPressed",
"ariaReadOnly",
"ariaRelevant",
"ariaRequired",
"ariaRoleDescription",
"ariaRowCount",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<meta charset="utf-8">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>

<script>
"use strict";

test(() => {
assert_false("ariaRelevant" in Element.prototype);
});
</script>
1 change: 0 additions & 1 deletion custom-elements/reactions/AriaMixin-string-attributes.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
testReflectAttribute('ariaPosInSet', 'aria-posinset', 'foo', 'bar', 'ariaPosInSet on Element');
testReflectAttribute('ariaPressed', 'aria-pressed', 'foo', 'bar', 'ariaPressed on Element');
testReflectAttribute('ariaReadOnly', 'aria-readonly', 'foo', 'bar', 'ariaReadOnly on Element');
testReflectAttribute('ariaRelevant', 'aria-relevant', 'foo', 'bar', 'ariaRelevant on Element');
testReflectAttribute('ariaRequired', 'aria-required', 'foo', 'bar', 'ariaRequired on Element');
testReflectAttribute('ariaRoleDescription', 'aria-roledescription', 'foo', 'bar', 'ariaRoleDescription on Element');
testReflectAttribute('ariaRowCount', 'aria-rowcount', 'foo', 'bar', 'ariaRowCount on Element');
Expand Down
11 changes: 0 additions & 11 deletions html/dom/aria-attribute-reflection.html
Original file line number Diff line number Diff line change
Expand Up @@ -320,17 +320,6 @@
}, "aria-readonly attribute reflects.");
</script>

<div id="relevant" aria-relevant="text"></div>
<script>
test(function(t) {
var element = document.getElementById("relevant");
assert_equals(element.ariaRelevant, "text");
element.ariaRelevant = "removals";
assert_equals(element.getAttribute("aria-relevant"), "removals");
testNullable(element, "ariaRelevant", "aria-relevant");
}, "aria-relevant attribute reflects.");
</script>

<div id="required" aria-required="true"></div>
<script>
test(function(t) {
Expand Down

0 comments on commit 433812e

Please sign in to comment.