Skip to content

Commit

Permalink
feat(aria): allow DPUB ARIA roles
Browse files Browse the repository at this point in the history
  • Loading branch information
rdeltour committed Mar 4, 2018
1 parent 92e24eb commit 70b48f6
Show file tree
Hide file tree
Showing 3 changed files with 398 additions and 2 deletions.
351 changes: 351 additions & 0 deletions lib/commons/aria/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,357 @@ lookupTable.role = {
context: null,
implicit: ['body']
},
'doc-abstract': {
type: 'section',
attributes: {
allowed: ['aria-expanded']
},
owned: null,
nameFrom: ['author'],
context: null,
},
'doc-acknowledgments': {
type: 'landmark',
attributes: {
allowed: ['aria-expanded']
},
owned: null,
nameFrom: ['author'],
context: null,
},
'doc-afterword': {
type: 'landmark',
attributes: {
allowed: ['aria-expanded']
},
owned: null,
nameFrom: ['author'],
context: null,
},
'doc-appendix': {
type: 'landmark',
attributes: {
allowed: ['aria-expanded']
},
owned: null,
nameFrom: ['author'],
context: null,
},
'doc-backlink': {
type: 'link',
attributes: {
allowed: ['aria-expanded']
},
owned: null,
nameFrom: ['author', 'contents'],
context: null,
},
'doc-biblioentry': {
type: 'listitem',
attributes: {
allowed: ['aria-expanded', 'aria-level', 'aria-posinset', 'aria-setsize']
},
owned: null,
nameFrom: ['author'],
context: ['doc-bibliography'],
},
'doc-bibliography': {
type: 'landmark',
attributes: {
allowed: ['aria-expanded']
},
owned: null,
nameFrom: ['author'],
context: null,
},
'doc-biblioref': {
type: 'link',
attributes: {
allowed: ['aria-expanded']
},
owned: null,
nameFrom: ['author', 'contents'],
context: null,
},
'doc-chapter': {
type: 'landmark',
attributes: {
allowed: ['aria-expanded']
},
owned: null,
namefrom: ['author'],
context: null,
},
'doc-colophon': {
type: 'section',
attributes: {
allowed: ['aria-expanded']
},
owned: null,
namefrom: ['author'],
context: null,
},
'doc-conclusion': {
type: 'landmark',
attributes: {
allowed: ['aria-expanded']
},
owned: null,
namefrom: ['author'],
context: null,
},
'doc-cover': {
type: 'img',
attributes: {
allowed: ['aria-expanded']
},
owned: null,
namefrom: ['author'],
context: null,
},
'doc-credit': {
type: 'section',
attributes: {
allowed: ['aria-expanded']
},
owned: null,
namefrom: ['author'],
context: null,
},
'doc-credits': {
type: 'landmark',
attributes: {
allowed: ['aria-expanded']
},
owned: null,
namefrom: ['author'],
context: null,
},
'doc-dedication': {
type: 'section',
attributes: {
allowed: ['aria-expanded']
},
owned: null,
namefrom: ['author'],
context: null,
},
'doc-endnote': {
type: 'listitem',
attributes: {
allowed: ['aria-expanded', 'aria-level', 'aria-posinset', 'aria-setsize']
},
owned: null,
namefrom: ['author'],
context: ['doc-endnotes'],
},
'doc-endnotes': {
type: 'landmark',
attributes: {
allowed: ['aria-expanded']
},
owned: ['doc-endnote'],
namefrom: ['author'],
context: null,
},
'doc-epigraph': {
type: 'section',
attributes: {
allowed: ['aria-expanded']
},
owned: null,
namefrom: ['author'],
context: null,
},
'doc-epilogue': {
type: 'landmark',
attributes: {
allowed: ['aria-expanded']
},
owned: null,
namefrom: ['author'],
context: null,
},
'doc-errata': {
type: 'landmark',
attributes: {
allowed: ['aria-expanded']
},
owned: null,
namefrom: ['author'],
context: null,
},
'doc-example': {
type: 'section',
attributes: {
allowed: ['aria-expanded']
},
owned: null,
namefrom: ['author'],
context: null,
},
'doc-footnote': {
type: 'section',
attributes: {
allowed: ['aria-expanded']
},
owned: null,
namefrom: ['author'],
context: null,
},
'doc-foreword': {
type: 'landmark',
attributes: {
allowed: ['aria-expanded']
},
owned: null,
namefrom: ['author'],
context: null,
},
'doc-glossary': {
type: 'landmark',
attributes: {
allowed: ['aria-expanded']
},
owned: ['term', 'definition'],
namefrom: ['author'],
context: null,
},
'doc-glossref': {
type: 'link',
attributes: {
allowed: ['aria-expanded']
},
owned: null,
namefrom: ['author', 'contents'],
context: null,
},
'doc-index': {
type: 'navigation',
attributes: {
allowed: ['aria-expanded']
},
owned: null,
namefrom: ['author'],
context: null,
},
'doc-introduction': {
type: 'landmark',
attributes: {
allowed: ['aria-expanded']
},
owned: null,
namefrom: ['author'],
context: null,
},
'doc-noteref': {
type: 'link',
attributes: {
allowed: ['aria-expanded']
},
owned: null,
namefrom: ['author', 'contents'],
context: null,
},
'doc-notice': {
type: 'note',
attributes: {
allowed: ['aria-expanded']
},
owned: null,
namefrom: ['author'],
context: null,
},
'doc-pagebreak': {
type: 'separator',
attributes: {
allowed: ['aria-expanded']
},
owned: null,
namefrom: ['author'],
context: null,
},
'doc-pagelist': {
type: 'navigation',
attributes: {
allowed: ['aria-expanded']
},
owned: null,
namefrom: ['author'],
context: null,
},
'doc-part': {
type: 'landmark',
attributes: {
allowed: ['aria-expanded']
},
owned: null,
namefrom: ['author'],
context: null,
},
'doc-preface': {
type: 'landmark',
attributes: {
allowed: ['aria-expanded']
},
owned: null,
namefrom: ['author'],
context: null,
},
'doc-prologue': {
type: 'landmark',
attributes: {
allowed: ['aria-expanded']
},
owned: null,
namefrom: ['author'],
context: null,
},
'doc-pullquote': {
type: 'none',
attributes: {
allowed: ['aria-expanded']
},
owned: null,
namefrom: ['author'],
context: null,
},
'doc-qna': {
type: 'section',
attributes: {
allowed: ['aria-expanded']
},
owned: null,
namefrom: ['author'],
context: null,
},
'doc-subtitle': {
type: 'sectionhead',
attributes: {
allowed: ['aria-expanded']
},
owned: null,
namefrom: ['author'],
context: null,
},
'doc-tip': {
type: 'note',
attributes: {
allowed: ['aria-expanded']
},
owned: null,
namefrom: ['author'],
context: null,
},
'doc-toc': {
type: 'navigation',
attributes: {
allowed: ['aria-expanded']
},
owned: null,
namefrom: ['author'],
context: null,
},
'feed': {
type: 'structure',
attributes: {
Expand Down
Loading

0 comments on commit 70b48f6

Please sign in to comment.