Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(dpub): deprecate doc-endnote rather than doc-endnotes (plural) #3373

Merged
merged 1 commit into from
Feb 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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