Skip to content

Commit

Permalink
feat: Deprecate only-dlitems-evaluate & only-listitems-evaluate metho…
Browse files Browse the repository at this point in the history
  • Loading branch information
WilcoFiers authored Oct 17, 2022
1 parent ff00a00 commit 322e9ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/checks/lists/only-dlitems-evaluate.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { isVisibleToScreenReaders } from '../../commons/dom';
import { getRole, getExplicitRole } from '../../commons/aria';

/**
* @deprecated
*/
function onlyDlitemsEvaluate(node, options, virtualNode) {
const ALLOWED_ROLES = ['definition', 'term', 'list'];
const base = {
Expand Down
3 changes: 3 additions & 0 deletions lib/checks/lists/only-listitems-evaluate.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { isVisibleToScreenReaders } from '../../commons/dom';
import { getRole } from '../../commons/aria';

/**
* @deprecated
*/
function onlyListitemsEvaluate(node, options, virtualNode) {
let hasNonEmptyTextNode = false;
let atLeastOneListitem = false;
Expand Down

0 comments on commit 322e9ed

Please sign in to comment.