Skip to content

Commit

Permalink
core: remove duplicate-id-aria and duplicate-id-active
Browse files Browse the repository at this point in the history
  • Loading branch information
adamraine committed Apr 1, 2024
1 parent 4f54d5a commit 42574a8
Show file tree
Hide file tree
Showing 56 changed files with 227 additions and 839 deletions.
5 changes: 0 additions & 5 deletions cli/test/fixtures/a11y/a11y_tester.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,6 @@
<dd></dd>
</div>
</section>
<p>duplicate-id-active</p>
<section>
<textarea id="duplicate-id-active" aria-label="text1"></textarea>
<textarea id="duplicate-id-active" aria-label="text2"></textarea>
</section>
<p>duplicate-id-aria</p>
<section>
<div id="duplicate-id-aria" class="duplicate-id-aria"></span>
Expand Down
31 changes: 0 additions & 31 deletions cli/test/smokehouse/test-definitions/a11y.js
Original file line number Diff line number Diff line change
Expand Up @@ -452,37 +452,6 @@ const expectations = {

},
},
'duplicate-id-active': {
score: 0,
details: {
items: [
{
node: {
'type': 'node',
'selector': 'body > section > textarea#duplicate-id-active',
'path': '2,HTML,1,BODY,47,SECTION,0,TEXTAREA',
'snippet': '<textarea id="duplicate-id-active" aria-label="text1">',
'explanation': 'Fix any of the following:\n Document has active elements with the same id attribute: duplicate-id-active',
'nodeLabel': 'text1',
},
subItems: {
type: 'subitems',
items: [
{
relatedNode: {
'type': 'node',
'path': '2,HTML,1,BODY,47,SECTION,1,TEXTAREA',
'selector': 'body > section > textarea#duplicate-id-active',
'snippet': '<textarea id="duplicate-id-active" aria-label="text2">',
'nodeLabel': 'text2',
},
},
],
},
},
],
},
},
'duplicate-id-aria': {
score: 1,
details: {
Expand Down
42 changes: 0 additions & 42 deletions core/audits/accessibility/duplicate-id-active.js

This file was deleted.

2 changes: 0 additions & 2 deletions core/config/default-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,6 @@ const defaultConfig = {
'accessibility/definition-list',
'accessibility/dlitem',
'accessibility/document-title',
'accessibility/duplicate-id-active',
'accessibility/duplicate-id-aria',
'accessibility/empty-heading',
'accessibility/form-field-multiple-labels',
Expand Down Expand Up @@ -525,7 +524,6 @@ const defaultConfig = {
{id: 'definition-list', weight: 7, group: 'a11y-tables-lists'},
{id: 'dlitem', weight: 7, group: 'a11y-tables-lists'},
{id: 'document-title', weight: 7, group: 'a11y-names-labels'},
{id: 'duplicate-id-active', weight: 7, group: 'a11y-navigation'},
{id: 'duplicate-id-aria', weight: 10, group: 'a11y-aria'},
{id: 'form-field-multiple-labels', weight: 3, group: 'a11y-names-labels'},
{id: 'frame-title', weight: 7, group: 'a11y-names-labels'},
Expand Down
1 change: 0 additions & 1 deletion core/gather/gatherers/accessibility.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ async function runA11yChecks() {
'aria-text': {enabled: true},
'audio-caption': {enabled: false},
'blink': {enabled: false},
'duplicate-id-active': {enabled: true},
'duplicate-id': {enabled: false},
'empty-heading': {enabled: true},
'frame-focusable-content': {enabled: false},
Expand Down
Loading

0 comments on commit 42574a8

Please sign in to comment.