- commit
- 783907299ed343c3891f23899eb3b937d680827b
- parent
- 388270ec1d1dbe2a7600e493a057d523ff198dff
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2022-01-25 20:20
update to dpub-aria-1.1
Diffstat
| M | README.md | 2 | +- |
| M | lib/constants.js | 11 | ++++++++++- |
2 files changed, 11 insertions, 2 deletions
diff --git a/README.md b/README.md
@@ -109,7 +109,7 @@ That said, this is what I think it could also be used for: 109 109 - [Accessible Rich Internet Applications 1.2](https://www.w3.org/TR/wai-aria-1.2/) 110 110 - [HTML Accessibility API Mappings 1.0](https://www.w3.org/TR/html-aam-1.0/) 111 111 - [WAI-ARIA Graphics Module 1.0](https://www.w3.org/TR/graphics-aria-1.0/)112 -1 - [Digital Publishing WAI-ARIA Module 1.0](https://www.w3.org/TR/dpub-aria-1.0/)-1 112 - [Digital Publishing WAI-ARIA Module 1.1](https://www.w3.org/TR/dpub-aria-1.1/) 113 113 - [Accessible Name and Description Computation 1.1](https://www.w3.org/TR/accname-1.1/) 114 114 115 115 I try to update the code whenever a new version of these specs becomes a
diff --git a/lib/constants.js b/lib/constants.js
@@ -178,6 +178,12 @@ exports.roles = {
178 178 'doc-noteref': {
179 179 nameFromContents: true,
180 180 },
-1 181 'doc-pagebreak': {
-1 182 nameFromContents: true,
-1 183 },
-1 184 'doc-subtitle': {
-1 185 nameFromContents: true,
-1 186 },
181 187 document: {
182 188 selectors: ['html'],
183 189 childRoles: ['article', 'graphics-document'],
@@ -187,6 +193,7 @@ exports.roles = {
187 193 },
188 194 figure: {
189 195 selectors: ['figure'],
-1 196 childRoles: ['doc-example'],
190 197 },
191 198 form: {
192 199 selectors: ['form[aria-label]', 'form[aria-labelledby]', 'form[title]'],
@@ -416,8 +423,10 @@ exports.roles = {
416 423 'doc-credit',
417 424 'doc-dedication',
418 425 'doc-epigraph',
419 -1 'doc-example',
420 426 'doc-footnote',
-1 427 'doc-pagefooter',
-1 428 'doc-pageheader',
-1 429 'doc-pullquote',
421 430 'doc-qna',
422 431 'emphasis',
423 432 'figure',