@readium/guided-navigation 1.3.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (329) hide show
  1. package/README.md +6 -6
  2. package/dist/a11y.js +1 -1
  3. package/dist/converter.js +1 -1
  4. package/dist/elementHandlers.js +1 -1
  5. package/dist/emptyPairs.js +1 -1
  6. package/dist/index.js +1 -1
  7. package/dist/object.js +1 -1
  8. package/dist/roles.js +1 -1
  9. package/dist/textrefFragment.js +1 -1
  10. package/fixtures/README.md +4 -4
  11. package/fixtures/ROLES_COVERAGE.md +7 -3
  12. package/fixtures/abbreviation-acronym-html-native/gnd.json +3 -5
  13. package/fixtures/abbreviation-before-formatting/gnd.json +3 -5
  14. package/fixtures/abbreviation-before-image/gnd.json +10 -14
  15. package/fixtures/abbreviation-html-native/gnd.json +3 -5
  16. package/fixtures/abbreviation-language/gnd.json +3 -5
  17. package/fixtures/abbreviation-line-break/gnd.json +3 -5
  18. package/fixtures/abbreviation-nested/gnd.json +3 -5
  19. package/fixtures/abbreviation-nested-emphasis/gnd.json +3 -5
  20. package/fixtures/abbreviation-nested-term/gnd.json +4 -8
  21. package/fixtures/abbreviation-nested-term-punctuation/gnd.json +4 -8
  22. package/fixtures/abbreviation-no-title/gnd.json +1 -3
  23. package/fixtures/abbreviation-period-mid-sentence/gnd.json +3 -5
  24. package/fixtures/abbreviation-period-sentence-end/gnd.json +3 -5
  25. package/fixtures/abbreviation-spanning-terms/gnd.json +3 -9
  26. package/fixtures/abbreviation-with-image/gnd.json +10 -14
  27. package/fixtures/abbreviation-with-svg-and-math/gnd.json +15 -21
  28. package/fixtures/abstract-epub-type/gnd.json +3 -7
  29. package/fixtures/abstract-role-aria/gnd.json +1 -3
  30. package/fixtures/accessible-name-labelledby-aria-hidden/gnd.json +2 -7
  31. package/fixtures/accessible-name-labelledby-hidden-attribute/gnd.json +2 -7
  32. package/fixtures/acknowledgments-epub-type/gnd.json +3 -7
  33. package/fixtures/acknowledgments-role-aria/gnd.json +1 -3
  34. package/fixtures/afterword-epub-type/gnd.json +3 -7
  35. package/fixtures/afterword-role-aria/gnd.json +1 -3
  36. package/fixtures/appendix-epub-type/gnd.json +3 -8
  37. package/fixtures/appendix-role-aria/gnd.json +1 -3
  38. package/fixtures/article-html-native/gnd.json +1 -3
  39. package/fixtures/article-role-aria/gnd.json +2 -4
  40. package/fixtures/aside-epub-type/gnd.json +3 -7
  41. package/fixtures/aside-html-native/gnd.json +1 -3
  42. package/fixtures/audio-html-native/gnd.json +3 -5
  43. package/fixtures/audio-no-description/gnd.json +2 -4
  44. package/fixtures/backlink-epub-type/gnd.json +3 -8
  45. package/fixtures/backlink-role-aria/gnd.json +2 -5
  46. package/fixtures/bibliography-epub-type/gnd.json +7 -18
  47. package/fixtures/bibliography-role-aria/gnd.json +4 -12
  48. package/fixtures/biblioref-epub-type/gnd.json +3 -8
  49. package/fixtures/biblioref-role-aria/gnd.json +2 -5
  50. package/fixtures/biblioref-target-descendant-ids/gnd.json +31 -49
  51. package/fixtures/biblioref-target-in-bibliography-role-aria/gnd.json +16 -29
  52. package/fixtures/biblioref-target-mixed-content/gnd.json +27 -36
  53. package/fixtures/blockquote-html-native/gnd.json +1 -3
  54. package/fixtures/blockquote-role-aria/gnd.json +2 -4
  55. package/fixtures/body-html-native/gnd.json +1 -3
  56. package/fixtures/bubble-epub-type/gnd.json +11 -0
  57. package/fixtures/bubble-epub-type/input.xhtml +11 -0
  58. package/fixtures/bubble-epub-type/meta.json +10 -0
  59. package/fixtures/chapter-epub-type/gnd.json +4 -11
  60. package/fixtures/chapter-role-aria/gnd.json +2 -7
  61. package/fixtures/colophon-epub-type/gnd.json +3 -7
  62. package/fixtures/colophon-role-aria/gnd.json +1 -3
  63. package/fixtures/complementary-role-aria/gnd.json +1 -3
  64. package/fixtures/conclusion-epub-type/gnd.json +3 -7
  65. package/fixtures/conclusion-role-aria/gnd.json +1 -3
  66. package/fixtures/cover-epub-type/gnd.json +5 -12
  67. package/fixtures/cover-role-aria/gnd.json +3 -6
  68. package/fixtures/credit-epub-type/gnd.json +4 -10
  69. package/fixtures/credit-role-aria/gnd.json +1 -3
  70. package/fixtures/credits-epub-type/gnd.json +9 -23
  71. package/fixtures/credits-role-aria/gnd.json +4 -14
  72. package/fixtures/dedication-epub-type/gnd.json +3 -7
  73. package/fixtures/dedication-role-aria/gnd.json +1 -3
  74. package/fixtures/definition-epub-type/gnd.json +4 -10
  75. package/fixtures/definition-html-native/gnd.json +1 -3
  76. package/fixtures/definition-role-aria/gnd.json +1 -3
  77. package/fixtures/description-roleless-lone-child/gnd.json +5 -9
  78. package/fixtures/description-roleless-wrapper/gnd.json +8 -12
  79. package/fixtures/details-html-native/gnd.json +1 -3
  80. package/fixtures/details-summary-html-native/gnd.json +2 -6
  81. package/fixtures/endnotes-epub-type/gnd.json +9 -26
  82. package/fixtures/endnotes-role-aria/gnd.json +4 -14
  83. package/fixtures/epigraph-epub-type/gnd.json +3 -7
  84. package/fixtures/epigraph-role-aria/gnd.json +1 -3
  85. package/fixtures/epilogue-epub-type/gnd.json +3 -7
  86. package/fixtures/epilogue-role-aria/gnd.json +1 -3
  87. package/fixtures/errata-epub-type/gnd.json +3 -7
  88. package/fixtures/errata-role-aria/gnd.json +1 -3
  89. package/fixtures/example-epub-type/gnd.json +5 -14
  90. package/fixtures/example-role-aria/gnd.json +1 -3
  91. package/fixtures/figure-aria-label-caption/gnd.json +19 -0
  92. package/fixtures/figure-aria-label-caption/input.html +1 -0
  93. package/fixtures/figure-aria-label-caption/meta.json +12 -0
  94. package/fixtures/figure-basic-html-native/gnd.json +4 -8
  95. package/fixtures/figure-basic-role-aria/gnd.json +4 -8
  96. package/fixtures/figure-caption-block-content/gnd.json +33 -0
  97. package/fixtures/figure-caption-block-content/input.html +7 -0
  98. package/fixtures/figure-caption-block-content/meta.json +14 -0
  99. package/fixtures/figure-caption-element-html-native/gnd.json +14 -8
  100. package/fixtures/figure-caption-element-html-native/meta.json +1 -1
  101. package/fixtures/figure-caption-element-role-aria/gnd.json +14 -8
  102. package/fixtures/figure-caption-element-role-aria/meta.json +1 -1
  103. package/fixtures/figure-caption-html-native/gnd.json +3 -5
  104. package/fixtures/figure-caption-role-aria/gnd.json +3 -5
  105. package/fixtures/figure-credit-nested-in-aria-labelledby-caption/gnd.json +13 -21
  106. package/fixtures/figure-credit-nested-in-caption/gnd.json +13 -21
  107. package/fixtures/figure-credit-nested-in-caption/meta.json +1 -1
  108. package/fixtures/figure-credit-role-aria/gnd.json +12 -18
  109. package/fixtures/figure-credit-role-aria/meta.json +1 -1
  110. package/fixtures/figure-describedby/gnd.json +4 -8
  111. package/fixtures/figure-epub-type/gnd.json +5 -11
  112. package/fixtures/figure-no-description/gnd.json +3 -7
  113. package/fixtures/footnote-epub-type/gnd.json +5 -14
  114. package/fixtures/footnote-role-aria/gnd.json +17 -31
  115. package/fixtures/foreword-epub-type/gnd.json +3 -7
  116. package/fixtures/foreword-role-aria/gnd.json +1 -3
  117. package/fixtures/glossary-epub-type/gnd.json +10 -22
  118. package/fixtures/glossary-role-aria/gnd.json +5 -15
  119. package/fixtures/glossref-epub-type/gnd.json +3 -8
  120. package/fixtures/glossref-role-aria/gnd.json +2 -5
  121. package/fixtures/glossref-role-aria-mid-sentence/gnd.json +5 -13
  122. package/fixtures/glossref-sole-content/gnd.json +11 -26
  123. package/fixtures/glossref-target-in-glossary-role-aria/gnd.json +17 -32
  124. package/fixtures/glossref-target-percent-encoded/gnd.json +17 -32
  125. package/fixtures/glossref-target-percent-encoded/meta.json +1 -1
  126. package/fixtures/header-html-native/gnd.json +1 -3
  127. package/fixtures/heading-html-native/gnd.json +6 -18
  128. package/fixtures/heading-role-aria/gnd.json +6 -18
  129. package/fixtures/heading-role-presentation/gnd.json +6 -12
  130. package/fixtures/hidden-aria-hidden-html-native/gnd.json +2 -6
  131. package/fixtures/hidden-attribute-html-native/gnd.json +2 -6
  132. package/fixtures/image-alt-html-native/gnd.json +3 -5
  133. package/fixtures/image-decorative-empty-alt/gnd.json +2 -6
  134. package/fixtures/image-decorative-role-presentation/gnd.json +2 -6
  135. package/fixtures/image-decorative-whitespace-alt/gnd.json +4 -8
  136. package/fixtures/image-no-description/gnd.json +2 -4
  137. package/fixtures/image-role-aria/gnd.json +3 -5
  138. package/fixtures/index-epub-type/gnd.json +11 -32
  139. package/fixtures/index-role-aria/gnd.json +10 -28
  140. package/fixtures/introduction-epub-type/gnd.json +3 -7
  141. package/fixtures/introduction-role-aria/gnd.json +1 -3
  142. package/fixtures/landmarks-epub-type/gnd.json +15 -43
  143. package/fixtures/language-alt-inherited/gnd.json +8 -12
  144. package/fixtures/language-alt-own-lang/gnd.json +8 -12
  145. package/fixtures/language-block/gnd.json +5 -11
  146. package/fixtures/language-block-empty-lang/gnd.json +1 -3
  147. package/fixtures/language-describedby-shared/gnd.json +19 -27
  148. package/fixtures/language-document/gnd.json +3 -7
  149. package/fixtures/language-empty-lang-stops-inheritance/gnd.json +6 -10
  150. package/fixtures/language-figcaption/gnd.json +13 -16
  151. package/fixtures/language-figcaption/meta.json +1 -1
  152. package/fixtures/language-figcaption-credit/gnd.json +17 -25
  153. package/fixtures/language-figcaption-credit/meta.json +1 -1
  154. package/fixtures/language-figcaption-switches/gnd.json +13 -15
  155. package/fixtures/language-figcaption-switches/meta.json +1 -1
  156. package/fixtures/language-figcaption-switches-throughout/gnd.json +13 -16
  157. package/fixtures/language-figcaption-switches-throughout/meta.json +1 -1
  158. package/fixtures/language-inline-case-insensitive/gnd.json +3 -5
  159. package/fixtures/language-inline-case-insensitive-ssml/gnd.json +3 -5
  160. package/fixtures/language-inline-empty-lang/gnd.json +3 -5
  161. package/fixtures/language-inline-empty-lang-formatted/gnd.json +1 -3
  162. package/fixtures/language-inline-empty-lang-only/gnd.json +1 -3
  163. package/fixtures/language-inline-empty-lang-undeclared/gnd.json +3 -5
  164. package/fixtures/language-inline-lang-attribute/gnd.json +3 -5
  165. package/fixtures/language-inline-nested/gnd.json +3 -5
  166. package/fixtures/language-inline-repeated/gnd.json +3 -5
  167. package/fixtures/language-inline-two-languages/gnd.json +3 -5
  168. package/fixtures/language-labelledby-target/gnd.json +8 -12
  169. package/fixtures/language-labelledby-target-aria-label/gnd.json +12 -16
  170. package/fixtures/language-labelledby-target-switches/gnd.json +6 -10
  171. package/fixtures/language-labelledby-targets-case/gnd.json +11 -17
  172. package/fixtures/language-labelledby-targets-differ/gnd.json +9 -15
  173. package/fixtures/language-link-switches/gnd.json +10 -13
  174. package/fixtures/language-pagebreak-label/gnd.json +10 -14
  175. package/fixtures/language-undeclared-description/gnd.json +4 -8
  176. package/fixtures/language-xml-lang-empty-html-inherits/gnd.json +8 -12
  177. package/fixtures/language-xml-lang-empty-html-lang-applies/gnd.json +8 -12
  178. package/fixtures/language-xml-lang-empty-xhtml/gnd.json +6 -10
  179. package/fixtures/language-xml-lang-over-lang/gnd.json +8 -12
  180. package/fixtures/link-containing-image/gnd.json +12 -17
  181. package/fixtures/link-containing-pagebreak/gnd.json +12 -17
  182. package/fixtures/link-content-conversion/gnd.json +14 -20
  183. package/fixtures/link-content-identity/gnd.json +7 -8
  184. package/fixtures/link-content-words/gnd.json +9 -14
  185. package/fixtures/list-aria-posinset-setsize/gnd.json +3 -7
  186. package/fixtures/list-epub-type/gnd.json +6 -14
  187. package/fixtures/list-html-native/gnd.json +4 -12
  188. package/fixtures/list-item-posinset-override/gnd.json +7 -15
  189. package/fixtures/list-item-value-override/gnd.json +7 -15
  190. package/fixtures/list-ordered-html-native/gnd.json +7 -15
  191. package/fixtures/list-ordered-reversed/gnd.json +7 -15
  192. package/fixtures/list-ordered-start/gnd.json +7 -15
  193. package/fixtures/list-role-aria/gnd.json +4 -12
  194. package/fixtures/listitem-role-presentation/gnd.json +5 -11
  195. package/fixtures/loa-epub-type/gnd.json +11 -32
  196. package/fixtures/loi-epub-type/gnd.json +11 -32
  197. package/fixtures/lot-epub-type/gnd.json +11 -32
  198. package/fixtures/lov-epub-type/gnd.json +11 -32
  199. package/fixtures/main-html-native/gnd.json +1 -3
  200. package/fixtures/main-role-aria/gnd.json +1 -3
  201. package/fixtures/manifest.json +121 -11
  202. package/fixtures/math-html-native/gnd.json +5 -7
  203. package/fixtures/math-inline/gnd.json +10 -14
  204. package/fixtures/math-no-description/gnd.json +3 -5
  205. package/fixtures/math-role-aria/gnd.json +5 -7
  206. package/fixtures/navigation-html-native/gnd.json +1 -3
  207. package/fixtures/navigation-role-aria/gnd.json +1 -3
  208. package/fixtures/nested-blockquote/gnd.json +3 -9
  209. package/fixtures/nested-section/gnd.json +3 -9
  210. package/fixtures/noteref-after-closing-straight-quote/gnd.json +13 -20
  211. package/fixtures/noteref-after-closing-straight-quote-split/gnd.json +12 -17
  212. package/fixtures/noteref-enclosed-across-formatting/gnd.json +13 -20
  213. package/fixtures/noteref-enclosed-adjacent-pairs/gnd.json +38 -62
  214. package/fixtures/noteref-enclosed-adjacent-text/gnd.json +16 -23
  215. package/fixtures/noteref-enclosed-before-formatting/gnd.json +16 -23
  216. package/fixtures/noteref-enclosed-guillemets-french/gnd.json +42 -63
  217. package/fixtures/noteref-enclosed-quotes-chinese/gnd.json +15 -25
  218. package/fixtures/noteref-enclosed-quotes-german/gnd.json +49 -75
  219. package/fixtures/noteref-enclosed-quotes-swedish/gnd.json +28 -42
  220. package/fixtures/noteref-enclosed-straight-quotes/gnd.json +13 -20
  221. package/fixtures/noteref-in-lone-block/gnd.json +12 -17
  222. package/fixtures/noteref-role-aria/gnd.json +1 -3
  223. package/fixtures/noteref-target-in-endnotes-epub-type/gnd.json +10 -29
  224. package/fixtures/noteref-target-in-endnotes-role-aria/gnd.json +9 -26
  225. package/fixtures/noteref-target-malformed-escape/gnd.json +13 -20
  226. package/fixtures/noteref-target-percent-encoded/gnd.json +13 -20
  227. package/fixtures/notice-epub-type/gnd.json +3 -7
  228. package/fixtures/notice-role-aria/gnd.json +1 -3
  229. package/fixtures/pagebreak-epub-type/gnd.json +6 -14
  230. package/fixtures/pagebreak-role-aria/gnd.json +5 -11
  231. package/fixtures/pagelist-epub-type/gnd.json +15 -43
  232. package/fixtures/pagelist-role-aria/gnd.json +14 -40
  233. package/fixtures/panel-epub-type/gnd.json +27 -0
  234. package/fixtures/panel-epub-type/input.xhtml +14 -0
  235. package/fixtures/panel-epub-type/meta.json +13 -0
  236. package/fixtures/panel-group-epub-type/gnd.json +32 -0
  237. package/fixtures/panel-group-epub-type/input.xhtml +14 -0
  238. package/fixtures/panel-group-epub-type/meta.json +11 -0
  239. package/fixtures/panel-object-role-img/gnd.json +14 -0
  240. package/fixtures/panel-object-role-img/input.xhtml +11 -0
  241. package/fixtures/panel-object-role-img/meta.json +11 -0
  242. package/fixtures/panel-role-img-labelled/gnd.json +21 -0
  243. package/fixtures/panel-role-img-labelled/input.xhtml +13 -0
  244. package/fixtures/panel-role-img-labelled/meta.json +12 -0
  245. package/fixtures/panel-svg-epub-type/gnd.json +14 -0
  246. package/fixtures/panel-svg-epub-type/input.xhtml +11 -0
  247. package/fixtures/panel-svg-epub-type/meta.json +11 -0
  248. package/fixtures/paragraph-basic/gnd.json +1 -3
  249. package/fixtures/part-epub-type/gnd.json +4 -11
  250. package/fixtures/part-role-aria/gnd.json +2 -7
  251. package/fixtures/preface-epub-type/gnd.json +3 -7
  252. package/fixtures/preface-role-aria/gnd.json +1 -3
  253. package/fixtures/preformatted-html-native/gnd.json +1 -3
  254. package/fixtures/presentation-role-aria/gnd.json +1 -3
  255. package/fixtures/prologue-epub-type/gnd.json +3 -7
  256. package/fixtures/prologue-role-aria/gnd.json +1 -3
  257. package/fixtures/pullquote-epub-type/gnd.json +3 -8
  258. package/fixtures/pullquote-role-aria/gnd.json +1 -3
  259. package/fixtures/qna-epub-type/gnd.json +3 -8
  260. package/fixtures/qna-role-aria/gnd.json +1 -3
  261. package/fixtures/redundant-role-body-chapter/gnd.json +3 -10
  262. package/fixtures/redundant-role-nested-chapter/gnd.json +4 -13
  263. package/fixtures/region-role-aria/gnd.json +1 -3
  264. package/fixtures/section-html-native/gnd.json +1 -3
  265. package/fixtures/separator-html-native/gnd.json +3 -9
  266. package/fixtures/separator-role-aria/gnd.json +3 -9
  267. package/fixtures/separator-with-glyphs/gnd.json +3 -9
  268. package/fixtures/sound-epub-type/gnd.json +11 -0
  269. package/fixtures/sound-epub-type/input.xhtml +11 -0
  270. package/fixtures/sound-epub-type/meta.json +10 -0
  271. package/fixtures/subtitle-epub-type/gnd.json +3 -7
  272. package/fixtures/subtitle-role-aria/gnd.json +1 -3
  273. package/fixtures/summary-html-native/gnd.json +1 -3
  274. package/fixtures/table-aria-label-caption/gnd.json +27 -0
  275. package/fixtures/table-aria-label-caption/input.html +1 -0
  276. package/fixtures/table-aria-label-caption/meta.json +13 -0
  277. package/fixtures/table-caption/gnd.json +22 -42
  278. package/fixtures/table-caption/meta.json +1 -1
  279. package/fixtures/table-caption-aria-labelledby/gnd.json +28 -0
  280. package/fixtures/table-caption-aria-labelledby/input.html +1 -0
  281. package/fixtures/table-caption-aria-labelledby/meta.json +13 -0
  282. package/fixtures/table-caption-element-html-native/gnd.json +13 -22
  283. package/fixtures/table-caption-element-html-native/meta.json +1 -1
  284. package/fixtures/table-caption-role-aria/gnd.json +10 -15
  285. package/fixtures/table-cell-abbreviation/gnd.json +8 -16
  286. package/fixtures/table-cell-link/gnd.json +8 -19
  287. package/fixtures/table-cell-noteref/gnd.json +15 -25
  288. package/fixtures/table-colspan-html-native/gnd.json +9 -21
  289. package/fixtures/table-colspan-role-aria/gnd.json +9 -21
  290. package/fixtures/table-epub-type/gnd.json +7 -17
  291. package/fixtures/table-html-native/gnd.json +10 -30
  292. package/fixtures/table-in-role-none-wrapper/gnd.json +6 -18
  293. package/fixtures/table-nested-html-native/gnd.json +7 -19
  294. package/fixtures/table-nested-in-presentation-table/gnd.json +8 -24
  295. package/fixtures/table-nested-role-aria/gnd.json +7 -19
  296. package/fixtures/table-no-headers/gnd.json +11 -25
  297. package/fixtures/table-role-aria/gnd.json +10 -30
  298. package/fixtures/table-role-presentation-explicit-cell/gnd.json +4 -12
  299. package/fixtures/table-role-presentation-html-native/gnd.json +7 -17
  300. package/fixtures/table-role-presentation-role-aria/gnd.json +7 -17
  301. package/fixtures/table-rowgroup-role-aria/gnd.json +4 -10
  302. package/fixtures/table-rowspan-html-native/gnd.json +9 -21
  303. package/fixtures/table-rowspan-role-aria/gnd.json +9 -21
  304. package/fixtures/table-sectioning/gnd.json +10 -24
  305. package/fixtures/table-th-no-scope/gnd.json +11 -25
  306. package/fixtures/term-epub-type/gnd.json +4 -10
  307. package/fixtures/term-html-native/gnd.json +1 -3
  308. package/fixtures/term-role-aria/gnd.json +1 -3
  309. package/fixtures/term-span-in-dt/gnd.json +3 -9
  310. package/fixtures/tip-epub-type/gnd.json +3 -8
  311. package/fixtures/tip-role-aria/gnd.json +1 -3
  312. package/fixtures/toc-epub-type/gnd.json +15 -43
  313. package/fixtures/toc-role-aria/gnd.json +14 -40
  314. package/fixtures/video-html-native/gnd.json +3 -5
  315. package/fixtures/video-no-description/gnd.json +2 -4
  316. package/package.json +6 -2
  317. package/src/a11y.ts +3 -12
  318. package/src/converter.ts +18 -47
  319. package/src/elementHandlers.ts +3 -12
  320. package/src/emptyPairs.ts +35 -15
  321. package/src/index.ts +2 -1
  322. package/src/object.ts +4 -10
  323. package/src/roles.ts +7 -0
  324. package/src/textrefFragment.ts +7 -16
  325. package/types/src/a11y.d.ts +0 -2
  326. package/types/src/converter.d.ts +1 -2
  327. package/types/src/emptyPairs.d.ts +3 -0
  328. package/types/src/index.d.ts +2 -1
  329. package/types/src/textrefFragment.d.ts +0 -4
@@ -1,31 +1,23 @@
1
1
  {
2
- "role": [
3
- "list"
4
- ],
2
+ "role": ["list"],
5
3
  "children": [
6
4
  {
5
+ "role": ["listItem"],
7
6
  "text": {
8
7
  "plain": "First item"
9
- },
10
- "role": [
11
- "listItem"
12
- ]
8
+ }
13
9
  },
14
10
  {
11
+ "role": ["listItem"],
15
12
  "text": {
16
13
  "plain": "Second item"
17
- },
18
- "role": [
19
- "listItem"
20
- ]
14
+ }
21
15
  },
22
16
  {
17
+ "role": ["listItem"],
23
18
  "text": {
24
19
  "plain": "Third item"
25
- },
26
- "role": [
27
- "listItem"
28
- ]
20
+ }
29
21
  }
30
22
  ]
31
23
  }
@@ -1,31 +1,23 @@
1
1
  {
2
- "role": [
3
- "list"
4
- ],
2
+ "role": ["list"],
5
3
  "children": [
6
4
  {
5
+ "role": ["listItem"],
7
6
  "text": {
8
7
  "plain": "Third"
9
- },
10
- "role": [
11
- "listItem"
12
- ]
8
+ }
13
9
  },
14
10
  {
11
+ "role": ["listItem"],
15
12
  "text": {
16
13
  "plain": "Second"
17
- },
18
- "role": [
19
- "listItem"
20
- ]
14
+ }
21
15
  },
22
16
  {
17
+ "role": ["listItem"],
23
18
  "text": {
24
19
  "plain": "First"
25
- },
26
- "role": [
27
- "listItem"
28
- ]
20
+ }
29
21
  }
30
22
  ]
31
23
  }
@@ -1,31 +1,23 @@
1
1
  {
2
- "role": [
3
- "list"
4
- ],
2
+ "role": ["list"],
5
3
  "children": [
6
4
  {
5
+ "role": ["listItem"],
7
6
  "text": {
8
7
  "plain": "Fifth"
9
- },
10
- "role": [
11
- "listItem"
12
- ]
8
+ }
13
9
  },
14
10
  {
11
+ "role": ["listItem"],
15
12
  "text": {
16
13
  "plain": "Sixth"
17
- },
18
- "role": [
19
- "listItem"
20
- ]
14
+ }
21
15
  },
22
16
  {
17
+ "role": ["listItem"],
23
18
  "text": {
24
19
  "plain": "Seventh"
25
- },
26
- "role": [
27
- "listItem"
28
- ]
20
+ }
29
21
  }
30
22
  ]
31
23
  }
@@ -1,28 +1,20 @@
1
1
  {
2
- "role": [
3
- "list"
4
- ],
2
+ "role": ["list"],
5
3
  "children": [
6
4
  {
7
- "role": [
8
- "listItem"
9
- ],
5
+ "role": ["listItem"],
10
6
  "text": {
11
7
  "plain": "First item"
12
8
  }
13
9
  },
14
10
  {
15
- "role": [
16
- "listItem"
17
- ],
11
+ "role": ["listItem"],
18
12
  "text": {
19
13
  "plain": "Second item"
20
14
  }
21
15
  },
22
16
  {
23
- "role": [
24
- "listItem"
25
- ],
17
+ "role": ["listItem"],
26
18
  "text": {
27
19
  "plain": "Third item"
28
20
  }
@@ -1,23 +1,17 @@
1
1
  {
2
- "role": [
3
- "list"
4
- ],
2
+ "role": ["list"],
5
3
  "children": [
6
4
  {
5
+ "role": ["listItem"],
7
6
  "text": {
8
7
  "plain": "Normal item"
9
- },
10
- "role": [
11
- "listItem"
12
- ]
8
+ }
13
9
  },
14
10
  {
11
+ "role": ["presentation"],
15
12
  "text": {
16
13
  "plain": "Stripped item"
17
- },
18
- "role": [
19
- "presentation"
20
- ]
14
+ }
21
15
  }
22
16
  ]
23
17
  }
@@ -1,44 +1,23 @@
1
1
  {
2
- "role": [
3
- "body"
4
- ],
2
+ "role": ["body"],
5
3
  "children": [
6
4
  {
7
- "role": [
8
- "navigation",
9
- "loa"
10
- ],
5
+ "role": ["navigation", "loa"],
11
6
  "children": [
12
7
  {
13
- "role": [
14
- "list"
15
- ],
8
+ "role": ["list"],
16
9
  "children": [
17
10
  {
18
- "role": [
19
- "listItem"
20
- ],
21
- "children": [
22
- {
23
- "textref": "chapter1.xhtml#audio1",
24
- "text": {
25
- "plain": "Audio 1. Foghorn recording"
26
- }
27
- }
28
- ]
11
+ "role": ["listItem"],
12
+ "text": {
13
+ "plain": "Audio 1. Foghorn recording"
14
+ }
29
15
  },
30
16
  {
31
- "role": [
32
- "listItem"
33
- ],
34
- "children": [
35
- {
36
- "textref": "chapter2.xhtml#audio2",
37
- "text": {
38
- "plain": "Audio 2. Keeper's log reading"
39
- }
40
- }
41
- ]
17
+ "role": ["listItem"],
18
+ "text": {
19
+ "plain": "Audio 2. Keeper's log reading"
20
+ }
42
21
  }
43
22
  ]
44
23
  }
@@ -1,44 +1,23 @@
1
1
  {
2
- "role": [
3
- "body"
4
- ],
2
+ "role": ["body"],
5
3
  "children": [
6
4
  {
7
- "role": [
8
- "navigation",
9
- "loi"
10
- ],
5
+ "role": ["navigation", "loi"],
11
6
  "children": [
12
7
  {
13
- "role": [
14
- "list"
15
- ],
8
+ "role": ["list"],
16
9
  "children": [
17
10
  {
18
- "role": [
19
- "listItem"
20
- ],
21
- "children": [
22
- {
23
- "textref": "chapter1.xhtml#fig1",
24
- "text": {
25
- "plain": "Figure 1. Lighthouse cross-section"
26
- }
27
- }
28
- ]
11
+ "role": ["listItem"],
12
+ "text": {
13
+ "plain": "Figure 1. Lighthouse cross-section"
14
+ }
29
15
  },
30
16
  {
31
- "role": [
32
- "listItem"
33
- ],
34
- "children": [
35
- {
36
- "textref": "chapter2.xhtml#fig2",
37
- "text": {
38
- "plain": "Figure 2. Fresnel lens diagram"
39
- }
40
- }
41
- ]
17
+ "role": ["listItem"],
18
+ "text": {
19
+ "plain": "Figure 2. Fresnel lens diagram"
20
+ }
42
21
  }
43
22
  ]
44
23
  }
@@ -1,44 +1,23 @@
1
1
  {
2
- "role": [
3
- "body"
4
- ],
2
+ "role": ["body"],
5
3
  "children": [
6
4
  {
7
- "role": [
8
- "navigation",
9
- "lot"
10
- ],
5
+ "role": ["navigation", "lot"],
11
6
  "children": [
12
7
  {
13
- "role": [
14
- "list"
15
- ],
8
+ "role": ["list"],
16
9
  "children": [
17
10
  {
18
- "role": [
19
- "listItem"
20
- ],
21
- "children": [
22
- {
23
- "textref": "appendix.xhtml#table1",
24
- "text": {
25
- "plain": "Table 1. Lighthouse construction dates"
26
- }
27
- }
28
- ]
11
+ "role": ["listItem"],
12
+ "text": {
13
+ "plain": "Table 1. Lighthouse construction dates"
14
+ }
29
15
  },
30
16
  {
31
- "role": [
32
- "listItem"
33
- ],
34
- "children": [
35
- {
36
- "textref": "appendix.xhtml#table2",
37
- "text": {
38
- "plain": "Table 2. Keeper staffing by decade"
39
- }
40
- }
41
- ]
17
+ "role": ["listItem"],
18
+ "text": {
19
+ "plain": "Table 2. Keeper staffing by decade"
20
+ }
42
21
  }
43
22
  ]
44
23
  }
@@ -1,44 +1,23 @@
1
1
  {
2
- "role": [
3
- "body"
4
- ],
2
+ "role": ["body"],
5
3
  "children": [
6
4
  {
7
- "role": [
8
- "navigation",
9
- "lov"
10
- ],
5
+ "role": ["navigation", "lov"],
11
6
  "children": [
12
7
  {
13
- "role": [
14
- "list"
15
- ],
8
+ "role": ["list"],
16
9
  "children": [
17
10
  {
18
- "role": [
19
- "listItem"
20
- ],
21
- "children": [
22
- {
23
- "textref": "chapter1.xhtml#video1",
24
- "text": {
25
- "plain": "Video 1. Lamp mechanism in motion"
26
- }
27
- }
28
- ]
11
+ "role": ["listItem"],
12
+ "text": {
13
+ "plain": "Video 1. Lamp mechanism in motion"
14
+ }
29
15
  },
30
16
  {
31
- "role": [
32
- "listItem"
33
- ],
34
- "children": [
35
- {
36
- "textref": "chapter3.xhtml#video2",
37
- "text": {
38
- "plain": "Video 2. Automation retrofit"
39
- }
40
- }
41
- ]
17
+ "role": ["listItem"],
18
+ "text": {
19
+ "plain": "Video 2. Automation retrofit"
20
+ }
42
21
  }
43
22
  ]
44
23
  }
@@ -1,7 +1,5 @@
1
1
  {
2
- "role": [
3
- "main"
4
- ],
2
+ "role": ["main"],
5
3
  "text": {
6
4
  "plain": "The central topic of this document."
7
5
  }
@@ -1,7 +1,5 @@
1
1
  {
2
- "role": [
3
- "main"
4
- ],
2
+ "role": ["main"],
5
3
  "text": {
6
4
  "plain": "The central topic of this document."
7
5
  }
@@ -439,6 +439,16 @@
439
439
  "gnd": "gnd.json"
440
440
  }
441
441
  },
442
+ {
443
+ "id": "bubble-epub-type",
444
+ "dir": "bubble-epub-type",
445
+ "role": "bubble",
446
+ "description": "bubble role via epub:type=\"balloon\" on a <p>",
447
+ "files": {
448
+ "input": "input.xhtml",
449
+ "gnd": "gnd.json"
450
+ }
451
+ },
442
452
  {
443
453
  "id": "chapter-epub-type",
444
454
  "dir": "chapter-epub-type",
@@ -759,6 +769,16 @@
759
769
  "gnd": "gnd.json"
760
770
  }
761
771
  },
772
+ {
773
+ "id": "figure-aria-label-caption",
774
+ "dir": "figure-aria-label-caption",
775
+ "role": "figure",
776
+ "description": "A figure with an aria-label and a figcaption — the label becomes the figure's description and replaces its content, figcaption included",
777
+ "files": {
778
+ "input": "input.html",
779
+ "gnd": "gnd.json"
780
+ }
781
+ },
762
782
  {
763
783
  "id": "figure-basic-html-native",
764
784
  "dir": "figure-basic-html-native",
@@ -779,11 +799,21 @@
779
799
  "gnd": "gnd.json"
780
800
  }
781
801
  },
802
+ {
803
+ "id": "figure-caption-block-content",
804
+ "dir": "figure-caption-block-content",
805
+ "role": "figure",
806
+ "description": "A figure whose figcaption holds a heading and a paragraph. The figcaption stays a caption child whose blocks keep their own text, and the figure gets no description",
807
+ "files": {
808
+ "input": "input.html",
809
+ "gnd": "gnd.json"
810
+ }
811
+ },
782
812
  {
783
813
  "id": "figure-caption-element-html-native",
784
814
  "dir": "figure-caption-element-html-native",
785
815
  "role": "figure",
786
- "description": "A native <figure><figcaption> with no explicit aria-labelledby — the figcaption's text folds into the figure's own description (HTML-AAM implicit name), and the figcaption is not spoken as a separate child. Contrast with figure-caption-html-native, which has an explicit aria-labelledby pointing at the same figcaption.",
816
+ "description": "A native <figure><figcaption> with no explicit aria-labelledby — the figcaption stays a separate child with role \"caption\", and the figure gets no description. Contrast with figure-caption-html-native, which has an explicit aria-labelledby pointing at the same figcaption.",
787
817
  "files": {
788
818
  "input": "input.html",
789
819
  "gnd": "gnd.json"
@@ -793,7 +823,7 @@
793
823
  "id": "figure-caption-element-role-aria",
794
824
  "dir": "figure-caption-element-role-aria",
795
825
  "role": "figure",
796
- "description": "A role=\"figure\" with a role=\"caption\" child and no explicit aria-labelledby — the caption's text folds into the figure's own description, same as the native <figcaption> case, and isn't spoken as a separate child.",
826
+ "description": "A role=\"figure\" with a role=\"caption\" child and no explicit aria-labelledby — the caption stays a separate child with role \"caption\", same as the native <figcaption> case.",
797
827
  "files": {
798
828
  "input": "input.html",
799
829
  "gnd": "gnd.json"
@@ -833,7 +863,7 @@
833
863
  "id": "figure-credit-nested-in-caption",
834
864
  "dir": "figure-credit-nested-in-caption",
835
865
  "role": "figure",
836
- "description": "A figure with an implicit (figcaption) caption whose credit is nested inside it as a role=\"doc-credit\" span, rather than a sibling",
866
+ "description": "A figure with a figcaption and no aria-labelledby, whose credit is nested inside the figcaption as a role=\"doc-credit\" span, rather than a sibling",
837
867
  "files": {
838
868
  "input": "input.html",
839
869
  "gnd": "gnd.json"
@@ -843,7 +873,7 @@
843
873
  "id": "figure-credit-role-aria",
844
874
  "dir": "figure-credit-role-aria",
845
875
  "role": "figure",
846
- "description": "A figure with an implicit (figcaption) caption and a sibling credit line, via explicit ARIA role=\"doc-credit\" on a <p>",
876
+ "description": "A figure with a figcaption and no aria-labelledby, and a sibling credit line, via explicit ARIA role=\"doc-credit\" on a <p>",
847
877
  "files": {
848
878
  "input": "input.html",
849
879
  "gnd": "gnd.json"
@@ -993,7 +1023,7 @@
993
1023
  "id": "glossref-target-percent-encoded",
994
1024
  "dir": "glossref-target-percent-encoded",
995
1025
  "role": "glossref",
996
- "description": "A glossref whose href is percent-encoded still finds its target, and keeps its href as authored",
1026
+ "description": "A glossref whose href is percent-encoded still finds its target",
997
1027
  "files": {
998
1028
  "input": "input.html",
999
1029
  "gnd": "gnd.json"
@@ -1243,7 +1273,7 @@
1243
1273
  "id": "language-figcaption",
1244
1274
  "dir": "language-figcaption",
1245
1275
  "role": "figure",
1246
- "description": "A figure's implicit caption description is in the caption's language",
1276
+ "description": "A figure's caption is in the caption's language",
1247
1277
  "files": {
1248
1278
  "input": "input.html",
1249
1279
  "gnd": "gnd.json"
@@ -1253,7 +1283,7 @@
1253
1283
  "id": "language-figcaption-credit",
1254
1284
  "dir": "language-figcaption-credit",
1255
1285
  "role": "figure",
1256
- "description": "A figure's caption description language ignores a credit spoken separately",
1286
+ "description": "A figure's caption text and its nested credit each keep their own language",
1257
1287
  "files": {
1258
1288
  "input": "input.html",
1259
1289
  "gnd": "gnd.json"
@@ -1263,7 +1293,7 @@
1263
1293
  "id": "language-figcaption-switches",
1264
1294
  "dir": "language-figcaption-switches",
1265
1295
  "role": "figure",
1266
- "description": "A figure's caption description has no language when its text switches language",
1296
+ "description": "A figure's caption marks its language switch in SSML",
1267
1297
  "files": {
1268
1298
  "input": "input.html",
1269
1299
  "gnd": "gnd.json"
@@ -1273,7 +1303,7 @@
1273
1303
  "id": "language-figcaption-switches-throughout",
1274
1304
  "dir": "language-figcaption-switches-throughout",
1275
1305
  "role": "figure",
1276
- "description": "A figure's caption description is in the language its text switches to throughout",
1306
+ "description": "A figure's caption is in the language its text switches to throughout",
1277
1307
  "files": {
1278
1308
  "input": "input.html",
1279
1309
  "gnd": "gnd.json"
@@ -2019,6 +2049,56 @@
2019
2049
  "gnd": "gnd.json"
2020
2050
  }
2021
2051
  },
2052
+ {
2053
+ "id": "panel-epub-type",
2054
+ "dir": "panel-epub-type",
2055
+ "role": "panel",
2056
+ "description": "A comic panel via epub:type=\"panel\" on a labelled region <section>, holding a description and a balloon",
2057
+ "files": {
2058
+ "input": "input.xhtml",
2059
+ "gnd": "gnd.json"
2060
+ }
2061
+ },
2062
+ {
2063
+ "id": "panel-group-epub-type",
2064
+ "dir": "panel-group-epub-type",
2065
+ "role": "panelGroup",
2066
+ "description": "panelGroup role via epub:type=\"panel-group\" on a <div> grouping two panels",
2067
+ "files": {
2068
+ "input": "input.xhtml",
2069
+ "gnd": "gnd.json"
2070
+ }
2071
+ },
2072
+ {
2073
+ "id": "panel-object-role-img",
2074
+ "dir": "panel-object-role-img",
2075
+ "role": "panel",
2076
+ "description": "A comic panel via epub:type=\"panel\" on an inline <object> with role=\"img\" — it stays an image placeholder described by its label, its fallback content not read",
2077
+ "files": {
2078
+ "input": "input.xhtml",
2079
+ "gnd": "gnd.json"
2080
+ }
2081
+ },
2082
+ {
2083
+ "id": "panel-role-img-labelled",
2084
+ "dir": "panel-role-img-labelled",
2085
+ "role": "panel",
2086
+ "description": "A panel with role=\"img\" and an aria-label — the label becomes its description and its balloon is kept, unlike an image",
2087
+ "files": {
2088
+ "input": "input.xhtml",
2089
+ "gnd": "gnd.json"
2090
+ }
2091
+ },
2092
+ {
2093
+ "id": "panel-svg-epub-type",
2094
+ "dir": "panel-svg-epub-type",
2095
+ "role": "panel",
2096
+ "description": "A comic panel via epub:type=\"panel\" on an <svg> — it stays an image placeholder described by its label, its inner SVG text not read",
2097
+ "files": {
2098
+ "input": "input.xhtml",
2099
+ "gnd": "gnd.json"
2100
+ }
2101
+ },
2022
2102
  {
2023
2103
  "id": "paragraph-basic",
2024
2104
  "dir": "paragraph-basic",
@@ -2219,6 +2299,16 @@
2219
2299
  "gnd": "gnd.json"
2220
2300
  }
2221
2301
  },
2302
+ {
2303
+ "id": "sound-epub-type",
2304
+ "dir": "sound-epub-type",
2305
+ "role": "sound",
2306
+ "description": "sound role via epub:type=\"sound-area\" on a <p>",
2307
+ "files": {
2308
+ "input": "input.xhtml",
2309
+ "gnd": "gnd.json"
2310
+ }
2311
+ },
2222
2312
  {
2223
2313
  "id": "subtitle-epub-type",
2224
2314
  "dir": "subtitle-epub-type",
@@ -2249,11 +2339,31 @@
2249
2339
  "gnd": "gnd.json"
2250
2340
  }
2251
2341
  },
2342
+ {
2343
+ "id": "table-aria-label-caption",
2344
+ "dir": "table-aria-label-caption",
2345
+ "role": "table",
2346
+ "description": "A table with an aria-label and a <caption> — the label becomes the table's description and the caption stays a caption child",
2347
+ "files": {
2348
+ "input": "input.html",
2349
+ "gnd": "gnd.json"
2350
+ }
2351
+ },
2252
2352
  {
2253
2353
  "id": "table-caption",
2254
2354
  "dir": "table-caption",
2255
2355
  "role": "table",
2256
- "description": "A table with an accessible name via aria-label — the {description} branch of table's own announcement template. Uses aria-label rather than a native <caption> element since native <caption>/<figcaption> implicit accessible-name folding is not yet implemented (see CONTEXTUALIZATION_PLAN.md)",
2356
+ "description": "A table with an accessible name via aria-label — the {description} branch of table's own announcement template. A native <caption> stays a caption child instead (see table-caption-element-html-native)",
2357
+ "files": {
2358
+ "input": "input.html",
2359
+ "gnd": "gnd.json"
2360
+ }
2361
+ },
2362
+ {
2363
+ "id": "table-caption-aria-labelledby",
2364
+ "dir": "table-caption-aria-labelledby",
2365
+ "role": "table",
2366
+ "description": "A table labelled via aria-labelledby by its own <caption> — the caption text becomes the table's description, and the caption is still read as a caption child",
2257
2367
  "files": {
2258
2368
  "input": "input.html",
2259
2369
  "gnd": "gnd.json"
@@ -2263,7 +2373,7 @@
2263
2373
  "id": "table-caption-element-html-native",
2264
2374
  "dir": "table-caption-element-html-native",
2265
2375
  "role": "table",
2266
- "description": "A native <table><caption> with no explicit aria-labelledby — the caption becomes a separate child node with role \"caption\", not folded into the table's own description field. Directly demonstrates the caption-folding gap noted in CONTEXTUALIZATION_PLAN.md: table.md's spec assumes <caption> \"can end up in description\", but that implicit association isn't implemented. Contrast with table-caption (which uses explicit aria-label and does populate description) and table-caption-role-aria (the same un-folded-caption behavior via role=\"caption\")",
2376
+ "description": "A native <table><caption> with no explicit aria-labelledby — the caption becomes a separate child node with role \"caption\", not folded into the table's own description. Contrast with table-caption (explicit aria-label, which populates description) and table-caption-role-aria (the same via role=\"caption\")",
2267
2377
  "files": {
2268
2378
  "input": "input.html",
2269
2379
  "gnd": "gnd.json"