Skip to content

Commit

Permalink
fixIdpub): deprecate endnote, rather than endnotes (plural) (#3373)
Browse files Browse the repository at this point in the history
  • Loading branch information
WilcoFiers committed Feb 3, 2022
1 parent df50d1e commit 1ba9917
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions lib/standards/dpub-roles.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,13 @@ const dpubRoles = {
'aria-posinset',
'aria-setsize'
],
superclassRole: ['listitem']
superclassRole: ['listitem'],
deprecated: true
},
'doc-endnotes': {
type: 'landmark',
allowedAttrs: ['aria-expanded'],
superclassRole: ['landmark'],
deprecated: true
superclassRole: ['landmark']
},
'doc-epigraph': {
type: 'section',
Expand Down
4 changes: 2 additions & 2 deletions test/integration/rules/aria-roles/aria-roles.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
<div role="doc-credit" id="pass82">ok</div>
<div role="doc-credits" id="pass83">ok</div>
<div role="doc-dedication" id="pass84">ok</div>
<div role="doc-endnote" id="pass85">ok</div>
<div role="doc-endnotes" id="pass85">ok</div>
<div role="doc-epigraph" id="pass87">ok</div>
<div role="doc-epilogue" id="pass88">ok</div>
<div role="doc-errata" id="pass89">ok</div>
Expand Down Expand Up @@ -134,7 +134,7 @@
<div role="button alert" id="fail14">fail</div>
<!-- deprecated roles-->
<div role="doc-biblioentry" id="fail15">fail</div>
<div role="doc-endnotes" id="fail16">fail</div>
<div role="doc-endnote" id="fail16">fail</div>
</div>

<!-- inapplicable -->
Expand Down

0 comments on commit 1ba9917

Please sign in to comment.