@readium/guided-navigation 1.2.4 → 1.4.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.
- package/README.md +6 -6
- package/dist/a11y.js +1 -1
- package/dist/converter.js +1 -1
- package/dist/elementHandlers.js +1 -1
- package/dist/emptyPairs.js +1 -1
- package/dist/index.js +1 -1
- package/dist/object.js +1 -1
- package/dist/textrefFragment.js +1 -1
- package/fixtures/README.md +4 -4
- package/fixtures/ROLES_COVERAGE.md +5 -5
- package/fixtures/abbreviation-acronym-html-native/gnd.json +3 -5
- package/fixtures/abbreviation-before-formatting/gnd.json +3 -5
- package/fixtures/abbreviation-before-image/gnd.json +10 -14
- package/fixtures/abbreviation-html-native/gnd.json +3 -5
- package/fixtures/abbreviation-language/gnd.json +3 -5
- package/fixtures/abbreviation-line-break/gnd.json +3 -5
- package/fixtures/abbreviation-nested/gnd.json +3 -5
- package/fixtures/abbreviation-nested-emphasis/gnd.json +3 -5
- package/fixtures/abbreviation-nested-term/gnd.json +4 -8
- package/fixtures/abbreviation-nested-term-punctuation/gnd.json +4 -8
- package/fixtures/abbreviation-no-title/gnd.json +1 -3
- package/fixtures/abbreviation-period-mid-sentence/gnd.json +7 -0
- package/fixtures/abbreviation-period-mid-sentence/input.html +1 -0
- package/fixtures/abbreviation-period-mid-sentence/meta.json +11 -0
- package/fixtures/abbreviation-period-sentence-end/gnd.json +7 -0
- package/fixtures/abbreviation-period-sentence-end/input.html +1 -0
- package/fixtures/abbreviation-period-sentence-end/meta.json +11 -0
- package/fixtures/abbreviation-spanning-terms/gnd.json +3 -9
- package/fixtures/abbreviation-with-image/gnd.json +10 -14
- package/fixtures/abbreviation-with-svg-and-math/gnd.json +15 -21
- package/fixtures/abstract-epub-type/gnd.json +3 -7
- package/fixtures/abstract-role-aria/gnd.json +1 -3
- package/fixtures/accessible-name-labelledby-aria-hidden/gnd.json +2 -7
- package/fixtures/accessible-name-labelledby-hidden-attribute/gnd.json +2 -7
- package/fixtures/acknowledgments-epub-type/gnd.json +3 -7
- package/fixtures/acknowledgments-role-aria/gnd.json +1 -3
- package/fixtures/afterword-epub-type/gnd.json +3 -7
- package/fixtures/afterword-role-aria/gnd.json +1 -3
- package/fixtures/appendix-epub-type/gnd.json +3 -8
- package/fixtures/appendix-role-aria/gnd.json +1 -3
- package/fixtures/article-html-native/gnd.json +1 -3
- package/fixtures/article-role-aria/gnd.json +2 -4
- package/fixtures/aside-epub-type/gnd.json +3 -7
- package/fixtures/aside-html-native/gnd.json +1 -3
- package/fixtures/audio-html-native/gnd.json +3 -5
- package/fixtures/audio-no-description/gnd.json +2 -4
- package/fixtures/backlink-epub-type/gnd.json +3 -8
- package/fixtures/backlink-role-aria/gnd.json +2 -5
- package/fixtures/bibliography-epub-type/gnd.json +7 -18
- package/fixtures/bibliography-role-aria/gnd.json +4 -12
- package/fixtures/biblioref-epub-type/gnd.json +3 -8
- package/fixtures/biblioref-role-aria/gnd.json +2 -5
- package/fixtures/biblioref-target-descendant-ids/gnd.json +31 -49
- package/fixtures/biblioref-target-in-bibliography-role-aria/gnd.json +16 -29
- package/fixtures/biblioref-target-mixed-content/gnd.json +27 -36
- package/fixtures/blockquote-html-native/gnd.json +1 -3
- package/fixtures/blockquote-role-aria/gnd.json +2 -4
- package/fixtures/body-html-native/gnd.json +1 -3
- package/fixtures/chapter-epub-type/gnd.json +4 -11
- package/fixtures/chapter-role-aria/gnd.json +2 -7
- package/fixtures/colophon-epub-type/gnd.json +3 -7
- package/fixtures/colophon-role-aria/gnd.json +1 -3
- package/fixtures/complementary-role-aria/gnd.json +1 -3
- package/fixtures/conclusion-epub-type/gnd.json +3 -7
- package/fixtures/conclusion-role-aria/gnd.json +1 -3
- package/fixtures/cover-epub-type/gnd.json +5 -12
- package/fixtures/cover-role-aria/gnd.json +3 -6
- package/fixtures/credit-epub-type/gnd.json +4 -10
- package/fixtures/credit-role-aria/gnd.json +1 -3
- package/fixtures/credits-epub-type/gnd.json +9 -23
- package/fixtures/credits-role-aria/gnd.json +4 -14
- package/fixtures/dedication-epub-type/gnd.json +3 -7
- package/fixtures/dedication-role-aria/gnd.json +1 -3
- package/fixtures/definition-epub-type/gnd.json +4 -10
- package/fixtures/definition-html-native/gnd.json +1 -3
- package/fixtures/definition-role-aria/gnd.json +1 -3
- package/fixtures/description-roleless-lone-child/gnd.json +5 -9
- package/fixtures/description-roleless-wrapper/gnd.json +8 -12
- package/fixtures/details-html-native/gnd.json +1 -3
- package/fixtures/details-summary-html-native/gnd.json +2 -6
- package/fixtures/endnotes-epub-type/gnd.json +9 -26
- package/fixtures/endnotes-role-aria/gnd.json +4 -14
- package/fixtures/epigraph-epub-type/gnd.json +3 -7
- package/fixtures/epigraph-role-aria/gnd.json +1 -3
- package/fixtures/epilogue-epub-type/gnd.json +3 -7
- package/fixtures/epilogue-role-aria/gnd.json +1 -3
- package/fixtures/errata-epub-type/gnd.json +3 -7
- package/fixtures/errata-role-aria/gnd.json +1 -3
- package/fixtures/example-epub-type/gnd.json +5 -14
- package/fixtures/example-role-aria/gnd.json +1 -3
- package/fixtures/figure-aria-label-caption/gnd.json +19 -0
- package/fixtures/figure-aria-label-caption/input.html +1 -0
- package/fixtures/figure-aria-label-caption/meta.json +12 -0
- package/fixtures/figure-basic-html-native/gnd.json +4 -8
- package/fixtures/figure-basic-role-aria/gnd.json +4 -8
- package/fixtures/figure-caption-block-content/gnd.json +33 -0
- package/fixtures/figure-caption-block-content/input.html +7 -0
- package/fixtures/figure-caption-block-content/meta.json +14 -0
- package/fixtures/figure-caption-element-html-native/gnd.json +14 -8
- package/fixtures/figure-caption-element-html-native/meta.json +1 -1
- package/fixtures/figure-caption-element-role-aria/gnd.json +14 -8
- package/fixtures/figure-caption-element-role-aria/meta.json +1 -1
- package/fixtures/figure-caption-html-native/gnd.json +3 -5
- package/fixtures/figure-caption-role-aria/gnd.json +3 -5
- package/fixtures/figure-credit-nested-in-aria-labelledby-caption/gnd.json +13 -21
- package/fixtures/figure-credit-nested-in-caption/gnd.json +13 -21
- package/fixtures/figure-credit-nested-in-caption/meta.json +1 -1
- package/fixtures/figure-credit-role-aria/gnd.json +12 -18
- package/fixtures/figure-credit-role-aria/meta.json +1 -1
- package/fixtures/figure-describedby/gnd.json +4 -8
- package/fixtures/figure-epub-type/gnd.json +5 -11
- package/fixtures/figure-no-description/gnd.json +3 -7
- package/fixtures/footnote-epub-type/gnd.json +5 -14
- package/fixtures/footnote-role-aria/gnd.json +17 -31
- package/fixtures/foreword-epub-type/gnd.json +3 -7
- package/fixtures/foreword-role-aria/gnd.json +1 -3
- package/fixtures/glossary-epub-type/gnd.json +10 -22
- package/fixtures/glossary-role-aria/gnd.json +5 -15
- package/fixtures/glossref-epub-type/gnd.json +3 -8
- package/fixtures/glossref-role-aria/gnd.json +2 -5
- package/fixtures/glossref-role-aria-mid-sentence/gnd.json +5 -13
- package/fixtures/glossref-sole-content/gnd.json +11 -26
- package/fixtures/glossref-target-in-glossary-role-aria/gnd.json +17 -32
- package/fixtures/glossref-target-percent-encoded/gnd.json +17 -32
- package/fixtures/glossref-target-percent-encoded/meta.json +1 -1
- package/fixtures/header-html-native/gnd.json +1 -3
- package/fixtures/heading-html-native/gnd.json +6 -18
- package/fixtures/heading-role-aria/gnd.json +6 -18
- package/fixtures/heading-role-presentation/gnd.json +6 -12
- package/fixtures/hidden-aria-hidden-html-native/gnd.json +2 -6
- package/fixtures/hidden-attribute-html-native/gnd.json +2 -6
- package/fixtures/image-alt-html-native/gnd.json +3 -5
- package/fixtures/image-decorative-empty-alt/gnd.json +2 -6
- package/fixtures/image-decorative-role-presentation/gnd.json +2 -6
- package/fixtures/image-decorative-whitespace-alt/gnd.json +4 -8
- package/fixtures/image-no-description/gnd.json +2 -4
- package/fixtures/image-role-aria/gnd.json +3 -5
- package/fixtures/index-epub-type/gnd.json +11 -32
- package/fixtures/index-role-aria/gnd.json +10 -28
- package/fixtures/introduction-epub-type/gnd.json +3 -7
- package/fixtures/introduction-role-aria/gnd.json +1 -3
- package/fixtures/landmarks-epub-type/gnd.json +15 -43
- package/fixtures/language-alt-inherited/gnd.json +8 -12
- package/fixtures/language-alt-own-lang/gnd.json +8 -12
- package/fixtures/language-block/gnd.json +5 -11
- package/fixtures/language-block-empty-lang/gnd.json +1 -3
- package/fixtures/language-describedby-shared/gnd.json +19 -27
- package/fixtures/language-document/gnd.json +3 -7
- package/fixtures/language-empty-lang-stops-inheritance/gnd.json +6 -10
- package/fixtures/language-figcaption/gnd.json +13 -16
- package/fixtures/language-figcaption/meta.json +1 -1
- package/fixtures/language-figcaption-credit/gnd.json +17 -25
- package/fixtures/language-figcaption-credit/meta.json +1 -1
- package/fixtures/language-figcaption-switches/gnd.json +13 -15
- package/fixtures/language-figcaption-switches/meta.json +1 -1
- package/fixtures/language-figcaption-switches-throughout/gnd.json +13 -16
- package/fixtures/language-figcaption-switches-throughout/meta.json +1 -1
- package/fixtures/language-inline-case-insensitive/gnd.json +3 -5
- package/fixtures/language-inline-case-insensitive-ssml/gnd.json +3 -5
- package/fixtures/language-inline-empty-lang/gnd.json +3 -5
- package/fixtures/language-inline-empty-lang-formatted/gnd.json +1 -3
- package/fixtures/language-inline-empty-lang-only/gnd.json +1 -3
- package/fixtures/language-inline-empty-lang-undeclared/gnd.json +3 -5
- package/fixtures/language-inline-lang-attribute/gnd.json +3 -5
- package/fixtures/language-inline-nested/gnd.json +3 -5
- package/fixtures/language-inline-repeated/gnd.json +3 -5
- package/fixtures/language-inline-two-languages/gnd.json +3 -5
- package/fixtures/language-labelledby-target/gnd.json +8 -12
- package/fixtures/language-labelledby-target-aria-label/gnd.json +12 -16
- package/fixtures/language-labelledby-target-switches/gnd.json +6 -10
- package/fixtures/language-labelledby-targets-case/gnd.json +11 -17
- package/fixtures/language-labelledby-targets-differ/gnd.json +9 -15
- package/fixtures/language-link-switches/gnd.json +10 -13
- package/fixtures/language-pagebreak-label/gnd.json +10 -14
- package/fixtures/language-undeclared-description/gnd.json +4 -8
- package/fixtures/language-xml-lang-empty-html-inherits/gnd.json +8 -12
- package/fixtures/language-xml-lang-empty-html-lang-applies/gnd.json +8 -12
- package/fixtures/language-xml-lang-empty-xhtml/gnd.json +6 -10
- package/fixtures/language-xml-lang-over-lang/gnd.json +8 -12
- package/fixtures/link-containing-image/gnd.json +12 -17
- package/fixtures/link-containing-pagebreak/gnd.json +12 -17
- package/fixtures/link-content-conversion/gnd.json +14 -20
- package/fixtures/link-content-identity/gnd.json +7 -8
- package/fixtures/link-content-words/gnd.json +9 -14
- package/fixtures/list-aria-posinset-setsize/gnd.json +3 -7
- package/fixtures/list-epub-type/gnd.json +6 -14
- package/fixtures/list-html-native/gnd.json +4 -12
- package/fixtures/list-item-posinset-override/gnd.json +7 -15
- package/fixtures/list-item-value-override/gnd.json +7 -15
- package/fixtures/list-ordered-html-native/gnd.json +7 -15
- package/fixtures/list-ordered-reversed/gnd.json +7 -15
- package/fixtures/list-ordered-start/gnd.json +7 -15
- package/fixtures/list-role-aria/gnd.json +4 -12
- package/fixtures/listitem-role-presentation/gnd.json +5 -11
- package/fixtures/loa-epub-type/gnd.json +11 -32
- package/fixtures/loi-epub-type/gnd.json +11 -32
- package/fixtures/lot-epub-type/gnd.json +11 -32
- package/fixtures/lov-epub-type/gnd.json +11 -32
- package/fixtures/main-html-native/gnd.json +1 -3
- package/fixtures/main-role-aria/gnd.json +1 -3
- package/fixtures/manifest.json +81 -11
- package/fixtures/math-html-native/gnd.json +5 -7
- package/fixtures/math-inline/gnd.json +10 -14
- package/fixtures/math-no-description/gnd.json +3 -5
- package/fixtures/math-role-aria/gnd.json +5 -7
- package/fixtures/navigation-html-native/gnd.json +1 -3
- package/fixtures/navigation-role-aria/gnd.json +1 -3
- package/fixtures/nested-blockquote/gnd.json +3 -9
- package/fixtures/nested-section/gnd.json +3 -9
- package/fixtures/noteref-after-closing-straight-quote/gnd.json +13 -20
- package/fixtures/noteref-after-closing-straight-quote-split/gnd.json +12 -17
- package/fixtures/noteref-enclosed-across-formatting/gnd.json +13 -20
- package/fixtures/noteref-enclosed-adjacent-pairs/gnd.json +38 -62
- package/fixtures/noteref-enclosed-adjacent-text/gnd.json +16 -23
- package/fixtures/noteref-enclosed-before-formatting/gnd.json +16 -23
- package/fixtures/noteref-enclosed-guillemets-french/gnd.json +42 -63
- package/fixtures/noteref-enclosed-quotes-chinese/gnd.json +15 -25
- package/fixtures/noteref-enclosed-quotes-german/gnd.json +49 -75
- package/fixtures/noteref-enclosed-quotes-swedish/gnd.json +28 -42
- package/fixtures/noteref-enclosed-straight-quotes/gnd.json +13 -20
- package/fixtures/noteref-in-lone-block/gnd.json +12 -17
- package/fixtures/noteref-role-aria/gnd.json +1 -3
- package/fixtures/noteref-target-in-endnotes-epub-type/gnd.json +10 -29
- package/fixtures/noteref-target-in-endnotes-role-aria/gnd.json +9 -26
- package/fixtures/noteref-target-malformed-escape/gnd.json +13 -20
- package/fixtures/noteref-target-percent-encoded/gnd.json +13 -20
- package/fixtures/notice-epub-type/gnd.json +3 -7
- package/fixtures/notice-role-aria/gnd.json +1 -3
- package/fixtures/pagebreak-epub-type/gnd.json +6 -14
- package/fixtures/pagebreak-role-aria/gnd.json +5 -11
- package/fixtures/pagelist-epub-type/gnd.json +15 -43
- package/fixtures/pagelist-role-aria/gnd.json +14 -40
- package/fixtures/paragraph-basic/gnd.json +1 -3
- package/fixtures/part-epub-type/gnd.json +4 -11
- package/fixtures/part-role-aria/gnd.json +2 -7
- package/fixtures/preface-epub-type/gnd.json +3 -7
- package/fixtures/preface-role-aria/gnd.json +1 -3
- package/fixtures/preformatted-html-native/gnd.json +1 -3
- package/fixtures/presentation-role-aria/gnd.json +1 -3
- package/fixtures/prologue-epub-type/gnd.json +3 -7
- package/fixtures/prologue-role-aria/gnd.json +1 -3
- package/fixtures/pullquote-epub-type/gnd.json +3 -8
- package/fixtures/pullquote-role-aria/gnd.json +1 -3
- package/fixtures/qna-epub-type/gnd.json +3 -8
- package/fixtures/qna-role-aria/gnd.json +1 -3
- package/fixtures/redundant-role-body-chapter/gnd.json +3 -10
- package/fixtures/redundant-role-nested-chapter/gnd.json +4 -13
- package/fixtures/region-role-aria/gnd.json +1 -3
- package/fixtures/section-html-native/gnd.json +1 -3
- package/fixtures/separator-html-native/gnd.json +3 -9
- package/fixtures/separator-role-aria/gnd.json +3 -9
- package/fixtures/separator-with-glyphs/gnd.json +3 -9
- package/fixtures/subtitle-epub-type/gnd.json +3 -7
- package/fixtures/subtitle-role-aria/gnd.json +1 -3
- package/fixtures/summary-html-native/gnd.json +1 -3
- package/fixtures/table-aria-label-caption/gnd.json +27 -0
- package/fixtures/table-aria-label-caption/input.html +1 -0
- package/fixtures/table-aria-label-caption/meta.json +13 -0
- package/fixtures/table-caption/gnd.json +22 -42
- package/fixtures/table-caption/meta.json +1 -1
- package/fixtures/table-caption-aria-labelledby/gnd.json +28 -0
- package/fixtures/table-caption-aria-labelledby/input.html +1 -0
- package/fixtures/table-caption-aria-labelledby/meta.json +13 -0
- package/fixtures/table-caption-element-html-native/gnd.json +13 -22
- package/fixtures/table-caption-element-html-native/meta.json +1 -1
- package/fixtures/table-caption-role-aria/gnd.json +10 -15
- package/fixtures/table-cell-abbreviation/gnd.json +8 -16
- package/fixtures/table-cell-link/gnd.json +37 -0
- package/fixtures/table-cell-link/input.html +1 -0
- package/fixtures/table-cell-link/meta.json +14 -0
- package/fixtures/table-cell-noteref/gnd.json +15 -25
- package/fixtures/table-colspan-html-native/gnd.json +9 -21
- package/fixtures/table-colspan-role-aria/gnd.json +9 -21
- package/fixtures/table-epub-type/gnd.json +7 -17
- package/fixtures/table-html-native/gnd.json +10 -30
- package/fixtures/table-in-role-none-wrapper/gnd.json +6 -18
- package/fixtures/table-nested-html-native/gnd.json +7 -19
- package/fixtures/table-nested-in-presentation-table/gnd.json +8 -24
- package/fixtures/table-nested-role-aria/gnd.json +7 -19
- package/fixtures/table-no-headers/gnd.json +11 -25
- package/fixtures/table-role-aria/gnd.json +10 -30
- package/fixtures/table-role-presentation-explicit-cell/gnd.json +4 -12
- package/fixtures/table-role-presentation-html-native/gnd.json +7 -17
- package/fixtures/table-role-presentation-role-aria/gnd.json +7 -17
- package/fixtures/table-rowgroup-role-aria/gnd.json +4 -10
- package/fixtures/table-rowspan-html-native/gnd.json +9 -21
- package/fixtures/table-rowspan-role-aria/gnd.json +9 -21
- package/fixtures/table-sectioning/gnd.json +10 -24
- package/fixtures/table-th-no-scope/gnd.json +11 -25
- package/fixtures/term-epub-type/gnd.json +4 -10
- package/fixtures/term-html-native/gnd.json +1 -3
- package/fixtures/term-role-aria/gnd.json +1 -3
- package/fixtures/term-span-in-dt/gnd.json +3 -9
- package/fixtures/tip-epub-type/gnd.json +3 -8
- package/fixtures/tip-role-aria/gnd.json +1 -3
- package/fixtures/toc-epub-type/gnd.json +15 -43
- package/fixtures/toc-role-aria/gnd.json +14 -40
- package/fixtures/video-html-native/gnd.json +3 -5
- package/fixtures/video-no-description/gnd.json +2 -4
- package/package.json +6 -2
- package/src/a11y.ts +3 -12
- package/src/converter.ts +10 -45
- package/src/elementHandlers.ts +3 -12
- package/src/emptyPairs.ts +35 -14
- package/src/index.ts +2 -0
- package/src/object.ts +4 -10
- package/src/textrefFragment.ts +7 -16
- package/types/src/a11y.d.ts +0 -2
- package/types/src/converter.d.ts +0 -2
- package/types/src/emptyPairs.d.ts +5 -0
- package/types/src/index.d.ts +2 -0
- package/types/src/textrefFragment.d.ts +0 -4
|
@@ -1,26 +1,17 @@
|
|
|
1
1
|
{
|
|
2
|
-
"role": [
|
|
3
|
-
"body"
|
|
4
|
-
],
|
|
2
|
+
"role": ["body"],
|
|
5
3
|
"children": [
|
|
6
4
|
{
|
|
7
|
-
"role": [
|
|
8
|
-
"section"
|
|
9
|
-
],
|
|
5
|
+
"role": ["section"],
|
|
10
6
|
"children": [
|
|
11
7
|
{
|
|
12
|
-
"role": [
|
|
13
|
-
"article"
|
|
14
|
-
],
|
|
8
|
+
"role": ["article"],
|
|
15
9
|
"children": [
|
|
16
10
|
{
|
|
11
|
+
"role": ["paragraph", "example"],
|
|
17
12
|
"text": {
|
|
18
13
|
"plain": "For instance, a Fresnel lens focuses light into a narrow beam."
|
|
19
|
-
}
|
|
20
|
-
"role": [
|
|
21
|
-
"paragraph",
|
|
22
|
-
"example"
|
|
23
|
-
]
|
|
14
|
+
}
|
|
24
15
|
}
|
|
25
16
|
]
|
|
26
17
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<figure aria-label="A cat face"><img src="cat.png" alt="A cat"><figcaption>Fig. 1</figcaption></figure>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "figure-aria-label-caption",
|
|
3
|
+
"description": "A figure with an aria-label and a figcaption — the label becomes the figure's description and replaces its content, figcaption included",
|
|
4
|
+
"role": "figure",
|
|
5
|
+
"rolesCovered": [
|
|
6
|
+
"figure",
|
|
7
|
+
"image",
|
|
8
|
+
"caption"
|
|
9
|
+
],
|
|
10
|
+
"sourceRef": "https://www.w3.org/TR/html-aam-1.0/",
|
|
11
|
+
"inputKind": "fragment"
|
|
12
|
+
}
|
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
{
|
|
2
|
-
"role": [
|
|
3
|
-
"figure"
|
|
4
|
-
],
|
|
2
|
+
"role": ["figure"],
|
|
5
3
|
"children": [
|
|
6
4
|
{
|
|
7
|
-
"role": [
|
|
8
|
-
"image"
|
|
9
|
-
],
|
|
10
|
-
"imgref": "chart.png",
|
|
5
|
+
"role": ["image"],
|
|
11
6
|
"description": {
|
|
12
7
|
"text": {
|
|
13
8
|
"plain": "A bar chart showing sales growth"
|
|
14
9
|
}
|
|
15
|
-
}
|
|
10
|
+
},
|
|
11
|
+
"imgref": "chart.png"
|
|
16
12
|
}
|
|
17
13
|
]
|
|
18
14
|
}
|
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
{
|
|
2
|
-
"role": [
|
|
3
|
-
"figure"
|
|
4
|
-
],
|
|
2
|
+
"role": ["figure"],
|
|
5
3
|
"children": [
|
|
6
4
|
{
|
|
7
|
-
"role": [
|
|
8
|
-
"image"
|
|
9
|
-
],
|
|
10
|
-
"imgref": "chart.png",
|
|
5
|
+
"role": ["image"],
|
|
11
6
|
"description": {
|
|
12
7
|
"text": {
|
|
13
8
|
"plain": "A bar chart showing sales growth"
|
|
14
9
|
}
|
|
15
|
-
}
|
|
10
|
+
},
|
|
11
|
+
"imgref": "chart.png"
|
|
16
12
|
}
|
|
17
13
|
]
|
|
18
14
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"role": ["figure"],
|
|
3
|
+
"children": [
|
|
4
|
+
{
|
|
5
|
+
"role": ["image"],
|
|
6
|
+
"description": {
|
|
7
|
+
"text": {
|
|
8
|
+
"plain": "Page 1"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"imgref": "page1.jpg"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"role": ["caption"],
|
|
15
|
+
"children": [
|
|
16
|
+
{
|
|
17
|
+
"role": ["heading1"],
|
|
18
|
+
"id": "page1-panel1",
|
|
19
|
+
"text": {
|
|
20
|
+
"plain": "Panel 1"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"role": ["paragraph"],
|
|
25
|
+
"id": "page1-panel1-description",
|
|
26
|
+
"text": {
|
|
27
|
+
"plain": "Pepper walks away from the house of the witches of Chaosah."
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "figure-caption-block-content",
|
|
3
|
+
"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",
|
|
4
|
+
"role": "figure",
|
|
5
|
+
"rolesCovered": [
|
|
6
|
+
"figure",
|
|
7
|
+
"image",
|
|
8
|
+
"caption",
|
|
9
|
+
"heading1",
|
|
10
|
+
"paragraph"
|
|
11
|
+
],
|
|
12
|
+
"sourceRef": "https://www.w3.org/TR/html-aam-1.0/",
|
|
13
|
+
"inputKind": "fragment"
|
|
14
|
+
}
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
{
|
|
2
|
-
"role": [
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
"role": ["figure"],
|
|
3
|
+
"children": [
|
|
4
|
+
{
|
|
5
|
+
"role": ["preformatted"],
|
|
6
|
+
"text": {
|
|
7
|
+
"plain": "/\\_/\\ ( o.o ) ^"
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"role": ["caption"],
|
|
12
|
+
"text": {
|
|
13
|
+
"plain": "ASCII Art of a cat face"
|
|
14
|
+
}
|
|
9
15
|
}
|
|
10
|
-
|
|
16
|
+
]
|
|
11
17
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "figure-caption-element-html-native",
|
|
3
|
-
"description": "A native <figure><figcaption> with no explicit aria-labelledby — the figcaption
|
|
3
|
+
"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.",
|
|
4
4
|
"role": "figure",
|
|
5
5
|
"rolesCovered": [
|
|
6
6
|
"figure",
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
{
|
|
2
|
-
"role": [
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
"role": ["figure"],
|
|
3
|
+
"children": [
|
|
4
|
+
{
|
|
5
|
+
"role": ["preformatted"],
|
|
6
|
+
"text": {
|
|
7
|
+
"plain": "/\\_/\\ ( o.o ) ^"
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"role": ["caption"],
|
|
12
|
+
"text": {
|
|
13
|
+
"plain": "ASCII Art of a cat face"
|
|
14
|
+
}
|
|
9
15
|
}
|
|
10
|
-
|
|
16
|
+
]
|
|
11
17
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "figure-caption-element-role-aria",
|
|
3
|
-
"description": "A role=\"figure\" with a role=\"caption\" child and no explicit aria-labelledby — the caption
|
|
3
|
+
"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.",
|
|
4
4
|
"role": "figure",
|
|
5
5
|
"rolesCovered": [
|
|
6
6
|
"figure",
|
|
@@ -1,39 +1,31 @@
|
|
|
1
1
|
{
|
|
2
|
-
"role": [
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
"role": ["figure"],
|
|
3
|
+
"description": {
|
|
4
|
+
"text": {
|
|
5
|
+
"plain": "Computer and speech synthesiser housing used by Stephen Hawking in 1999"
|
|
6
|
+
}
|
|
7
|
+
},
|
|
5
8
|
"children": [
|
|
6
9
|
{
|
|
7
|
-
"
|
|
8
|
-
"role": [
|
|
9
|
-
"image"
|
|
10
|
-
],
|
|
10
|
+
"role": ["image"],
|
|
11
11
|
"description": {
|
|
12
12
|
"text": {
|
|
13
13
|
"plain": "A metal-edged case with a red textured front panel."
|
|
14
14
|
}
|
|
15
|
-
}
|
|
15
|
+
},
|
|
16
|
+
"imgref": "hawking.jpg"
|
|
16
17
|
},
|
|
17
18
|
{
|
|
19
|
+
"role": ["caption"],
|
|
18
20
|
"id": "hawking-caption",
|
|
19
|
-
"role": [
|
|
20
|
-
"caption"
|
|
21
|
-
],
|
|
22
21
|
"children": [
|
|
23
22
|
{
|
|
23
|
+
"role": ["credit"],
|
|
24
24
|
"text": {
|
|
25
25
|
"plain": "Photo: Science Museum London, CC BY-SA 2.0."
|
|
26
|
-
}
|
|
27
|
-
"role": [
|
|
28
|
-
"credit"
|
|
29
|
-
]
|
|
26
|
+
}
|
|
30
27
|
}
|
|
31
28
|
]
|
|
32
29
|
}
|
|
33
|
-
]
|
|
34
|
-
"description": {
|
|
35
|
-
"text": {
|
|
36
|
-
"plain": "Computer and speech synthesiser housing used by Stephen Hawking in 1999"
|
|
37
|
-
}
|
|
38
|
-
}
|
|
30
|
+
]
|
|
39
31
|
}
|
|
@@ -1,38 +1,30 @@
|
|
|
1
1
|
{
|
|
2
|
-
"role": [
|
|
3
|
-
"figure"
|
|
4
|
-
],
|
|
2
|
+
"role": ["figure"],
|
|
5
3
|
"children": [
|
|
6
4
|
{
|
|
7
|
-
"
|
|
8
|
-
"role": [
|
|
9
|
-
"image"
|
|
10
|
-
],
|
|
5
|
+
"role": ["image"],
|
|
11
6
|
"description": {
|
|
12
7
|
"text": {
|
|
13
8
|
"plain": "A metal-edged case with a red textured front panel."
|
|
14
9
|
}
|
|
15
|
-
}
|
|
10
|
+
},
|
|
11
|
+
"imgref": "hawking.jpg"
|
|
16
12
|
},
|
|
17
13
|
{
|
|
18
|
-
"role": [
|
|
19
|
-
"caption"
|
|
20
|
-
],
|
|
14
|
+
"role": ["caption"],
|
|
21
15
|
"children": [
|
|
22
16
|
{
|
|
17
|
+
"text": {
|
|
18
|
+
"plain": "Computer and speech synthesiser housing used by Stephen Hawking in 1999"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"role": ["credit"],
|
|
23
23
|
"text": {
|
|
24
24
|
"plain": "Photo: Science Museum London, CC BY-SA 2.0."
|
|
25
|
-
}
|
|
26
|
-
"role": [
|
|
27
|
-
"credit"
|
|
28
|
-
]
|
|
25
|
+
}
|
|
29
26
|
}
|
|
30
27
|
]
|
|
31
28
|
}
|
|
32
|
-
]
|
|
33
|
-
"description": {
|
|
34
|
-
"text": {
|
|
35
|
-
"plain": "Computer and speech synthesiser housing used by Stephen Hawking in 1999"
|
|
36
|
-
}
|
|
37
|
-
}
|
|
29
|
+
]
|
|
38
30
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "figure-credit-nested-in-caption",
|
|
3
|
-
"description": "A figure with
|
|
3
|
+
"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",
|
|
4
4
|
"role": "figure",
|
|
5
5
|
"rolesCovered": [
|
|
6
6
|
"figure",
|
|
@@ -1,32 +1,26 @@
|
|
|
1
1
|
{
|
|
2
|
-
"role": [
|
|
3
|
-
"figure"
|
|
4
|
-
],
|
|
2
|
+
"role": ["figure"],
|
|
5
3
|
"children": [
|
|
6
4
|
{
|
|
7
|
-
"
|
|
8
|
-
"role": [
|
|
9
|
-
"image"
|
|
10
|
-
],
|
|
5
|
+
"role": ["image"],
|
|
11
6
|
"description": {
|
|
12
7
|
"text": {
|
|
13
8
|
"plain": "A metal-edged case with a red textured front panel."
|
|
14
9
|
}
|
|
10
|
+
},
|
|
11
|
+
"imgref": "hawking.jpg"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"role": ["caption"],
|
|
15
|
+
"text": {
|
|
16
|
+
"plain": "Computer and speech synthesiser housing used by Stephen Hawking in 1999"
|
|
15
17
|
}
|
|
16
18
|
},
|
|
17
19
|
{
|
|
20
|
+
"role": ["paragraph", "credit"],
|
|
18
21
|
"text": {
|
|
19
22
|
"plain": "Photo: Science Museum London, CC BY-SA 2.0."
|
|
20
|
-
}
|
|
21
|
-
"role": [
|
|
22
|
-
"paragraph",
|
|
23
|
-
"credit"
|
|
24
|
-
]
|
|
25
|
-
}
|
|
26
|
-
],
|
|
27
|
-
"description": {
|
|
28
|
-
"text": {
|
|
29
|
-
"plain": "Computer and speech synthesiser housing used by Stephen Hawking in 1999"
|
|
23
|
+
}
|
|
30
24
|
}
|
|
31
|
-
|
|
25
|
+
]
|
|
32
26
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "figure-credit-role-aria",
|
|
3
|
-
"description": "A figure with
|
|
3
|
+
"description": "A figure with a figcaption and no aria-labelledby, and a sibling credit line, via explicit ARIA role=\"doc-credit\" on a <p>",
|
|
4
4
|
"role": "figure",
|
|
5
5
|
"rolesCovered": [
|
|
6
6
|
"figure",
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"role": [
|
|
3
|
-
"figure"
|
|
4
|
-
],
|
|
2
|
+
"role": ["figure"],
|
|
5
3
|
"description": {
|
|
6
4
|
"text": {
|
|
7
5
|
"plain": "Full audio description: sales grew 12% year over year, driven primarily by the Q4 holiday season."
|
|
@@ -9,15 +7,13 @@
|
|
|
9
7
|
},
|
|
10
8
|
"children": [
|
|
11
9
|
{
|
|
12
|
-
"role": [
|
|
13
|
-
"image"
|
|
14
|
-
],
|
|
15
|
-
"imgref": "chart.png",
|
|
10
|
+
"role": ["image"],
|
|
16
11
|
"description": {
|
|
17
12
|
"text": {
|
|
18
13
|
"plain": "Sales chart"
|
|
19
14
|
}
|
|
20
|
-
}
|
|
15
|
+
},
|
|
16
|
+
"imgref": "chart.png"
|
|
21
17
|
}
|
|
22
18
|
]
|
|
23
19
|
}
|
|
@@ -1,23 +1,17 @@
|
|
|
1
1
|
{
|
|
2
|
-
"role": [
|
|
3
|
-
"body"
|
|
4
|
-
],
|
|
2
|
+
"role": ["body"],
|
|
5
3
|
"children": [
|
|
6
4
|
{
|
|
7
|
-
"role": [
|
|
8
|
-
"figure"
|
|
9
|
-
],
|
|
5
|
+
"role": ["figure"],
|
|
10
6
|
"children": [
|
|
11
7
|
{
|
|
12
|
-
"
|
|
13
|
-
"role": [
|
|
14
|
-
"image"
|
|
15
|
-
],
|
|
8
|
+
"role": ["image"],
|
|
16
9
|
"description": {
|
|
17
10
|
"text": {
|
|
18
11
|
"plain": "A bar chart showing sales growth"
|
|
19
12
|
}
|
|
20
|
-
}
|
|
13
|
+
},
|
|
14
|
+
"imgref": "chart.png"
|
|
21
15
|
}
|
|
22
16
|
]
|
|
23
17
|
}
|
|
@@ -1,35 +1,26 @@
|
|
|
1
1
|
{
|
|
2
|
-
"role": [
|
|
3
|
-
"body"
|
|
4
|
-
],
|
|
2
|
+
"role": ["body"],
|
|
5
3
|
"children": [
|
|
6
4
|
{
|
|
5
|
+
"role": ["paragraph"],
|
|
7
6
|
"text": {
|
|
8
7
|
"language": "en",
|
|
9
8
|
"plain": "This text has a footnote in the middle of a sentence.",
|
|
10
9
|
"ssml": "This text has a footnote <readium:noteref id=\"note1\" /> in the middle of a sentence."
|
|
11
10
|
},
|
|
12
|
-
"role": [
|
|
13
|
-
"paragraph"
|
|
14
|
-
],
|
|
15
11
|
"children": [
|
|
16
12
|
{
|
|
13
|
+
"role": ["noteref"],
|
|
17
14
|
"id": "note1",
|
|
18
15
|
"text": {
|
|
19
16
|
"plain": "[1]"
|
|
20
17
|
},
|
|
21
|
-
"role": [
|
|
22
|
-
"noteref"
|
|
23
|
-
],
|
|
24
18
|
"children": [
|
|
25
19
|
{
|
|
20
|
+
"role": ["aside", "footnote"],
|
|
26
21
|
"text": {
|
|
27
22
|
"plain": "Text of the footnote."
|
|
28
|
-
}
|
|
29
|
-
"role": [
|
|
30
|
-
"aside",
|
|
31
|
-
"footnote"
|
|
32
|
-
]
|
|
23
|
+
}
|
|
33
24
|
}
|
|
34
25
|
]
|
|
35
26
|
}
|