From 95faf70dbccfe005ea031be41de2f38930badf66 Mon Sep 17 00:00:00 2001 From: Victorien Elvinger Date: Sun, 10 Nov 2024 19:17:39 +0100 Subject: [PATCH] feat(aria-data): add DPub and Graphics modules (#4497) --- Cargo.lock | 2 + crates/biome_aria_metadata/Cargo.toml | 16 +- crates/biome_aria_metadata/aria-data.json | 1 - crates/biome_aria_metadata/build.rs | 44 +- crates/biome_aria_metadata/src/lib.rs | 2 +- crates/biome_deserialize/src/merge.rs | 6 + packages/aria-data/README.md | 8 +- packages/aria-data/dpub-aria-1-0.json | 1643 ++++++++++++ packages/aria-data/dpub-aria-1-1.json | 2307 +++++++++++++++++ packages/aria-data/generate-aria-data.js | 17 +- packages/aria-data/graphics-aria-1-0.json | 164 ++ .../{aria-data-1-1.json => wai-aria-1-1.json} | 2 +- .../{aria-data-1-2.json => wai-aria-1-2.json} | 0 ...-data-1-3-draft.json => wai-aria-1-3.json} | 0 14 files changed, 4177 insertions(+), 35 deletions(-) delete mode 120000 crates/biome_aria_metadata/aria-data.json create mode 100644 packages/aria-data/dpub-aria-1-0.json create mode 100644 packages/aria-data/dpub-aria-1-1.json create mode 100644 packages/aria-data/graphics-aria-1-0.json rename packages/aria-data/{aria-data-1-1.json => wai-aria-1-1.json} (99%) rename packages/aria-data/{aria-data-1-2.json => wai-aria-1-2.json} (100%) rename packages/aria-data/{aria-data-1-3-draft.json => wai-aria-1-3.json} (100%) diff --git a/Cargo.lock b/Cargo.lock index c58b3b25158e..389ab6f12f26 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -143,6 +143,8 @@ dependencies = [ name = "biome_aria_metadata" version = "0.5.7" dependencies = [ + "biome_deserialize", + "biome_deserialize_macros", "biome_string_case", "prettyplease", "proc-macro2", diff --git a/crates/biome_aria_metadata/Cargo.toml b/crates/biome_aria_metadata/Cargo.toml index 227c87f18a66..e74189eeebce 100644 --- a/crates/biome_aria_metadata/Cargo.toml +++ b/crates/biome_aria_metadata/Cargo.toml @@ -16,13 +16,15 @@ version = "0.5.7" [build-dependencies] -biome_string_case = { workspace = true } -prettyplease = "0.2.25" -proc-macro2 = { workspace = true, features = ["span-locations"] } -quote = { workspace = true } -serde = { workspace = true } -serde_json = { workspace = true } -syn = "2.0.76" +biome_deserialize = { workspace = true } +biome_deserialize_macros = { workspace = true } +biome_string_case = { workspace = true } +prettyplease = "0.2.25" +proc-macro2 = { workspace = true, features = ["span-locations"] } +quote = { workspace = true } +serde = { workspace = true } +serde_json = { workspace = true } +syn = "2.0.76" [lints] workspace = true diff --git a/crates/biome_aria_metadata/aria-data.json b/crates/biome_aria_metadata/aria-data.json deleted file mode 120000 index ed6051b89fc8..000000000000 --- a/crates/biome_aria_metadata/aria-data.json +++ /dev/null @@ -1 +0,0 @@ -../../packages/aria-data/aria-data-1-3-draft.json \ No newline at end of file diff --git a/crates/biome_aria_metadata/build.rs b/crates/biome_aria_metadata/build.rs index e2fe800c7340..cb5c8608f2a7 100644 --- a/crates/biome_aria_metadata/build.rs +++ b/crates/biome_aria_metadata/build.rs @@ -1,5 +1,6 @@ //! Generate ARAI metadata from `./aria-data.json` +use biome_deserialize::Merge; use biome_string_case::Case; use proc_macro2::{Ident, Literal, Span, TokenStream}; use quote::{format_ident, quote}; @@ -7,6 +8,10 @@ use std::collections::{BTreeMap, BTreeSet}; use std::path::PathBuf; use std::{env, fs, io}; +const WAI_ARIA: &str = "../../packages/aria-data/wai-aria-1-3.json"; +const GRAPHICS_ARIA: &str = "../../packages/aria-data/graphics-aria-1-0.json"; +const DPUB_ARIA: &str = "../../packages/aria-data/dpub-aria-1-1.json"; + const ISO_COUNTRIES: &[&str] = &[ "AF", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB", "BY", "BE", "BZ", "BJ", "BM", "BT", "BO", "BA", "BW", "BR", "IO", "VG", "BN", @@ -38,12 +43,11 @@ const ISO_LANGUAGES: &[&str] = &[ "wa", "cy", "wo", "xh", "yi", "ji", "yo", "zu", ]; -#[derive(Debug, Default, serde::Deserialize)] +#[derive(Debug, Default, biome_deserialize_macros::Merge, serde::Deserialize)] struct Aria { roles: BTreeMap, attributes: BTreeMap, } - impl Aria { /// Retuurns direct and indirect superclass roles. fn superclass_roles(&self, role_name: &str) -> Result, String> { @@ -60,7 +64,7 @@ impl Aria { } } -#[derive(Debug, Default, serde::Deserialize)] +#[derive(Debug, Default, biome_deserialize_macros::Merge, serde::Deserialize)] #[serde(default, rename_all = "camelCase")] struct AriaRole { description: String, @@ -182,7 +186,7 @@ enum AriaAttributeReferenceShortcut { }, } -#[derive(Debug, Default, serde::Deserialize)] +#[derive(Debug, Default, biome_deserialize_macros::Merge, serde::Deserialize)] #[serde(default, rename_all = "camelCase")] struct AriaAttribute { r#type: AriaAttributeType, @@ -195,7 +199,9 @@ struct AriaAttribute { values: BTreeMap, } -#[derive(Clone, Copy, Debug, Default, Eq, PartialEq, serde::Deserialize)] +#[derive( + Clone, Copy, Debug, Default, Eq, PartialEq, biome_deserialize_macros::Merge, serde::Deserialize, +)] enum AriaValueType { #[default] #[serde(rename = "true/false")] @@ -220,7 +226,7 @@ enum AriaValueType { Tristate, } -#[derive(Debug, Default, serde::Deserialize)] +#[derive(Debug, Default, biome_deserialize_macros::Merge, serde::Deserialize)] #[serde(rename_all = "camelCase")] enum AriaAttributeType { #[default] @@ -228,7 +234,7 @@ enum AriaAttributeType { State, } -#[derive(Debug, Default, serde::Deserialize)] +#[derive(Debug, Default, biome_deserialize_macros::Merge, serde::Deserialize)] #[serde(rename_all = "camelCase")] #[allow(dead_code)] struct ValueDefinition { @@ -239,13 +245,25 @@ struct ValueDefinition { fn main() -> io::Result<()> { // CARGO instructions: rern if one of these files change println!("cargo::rerun-if-changed=build.rs"); - println!("cargo::rerun-if-changed=aria-data.json"); + println!("cargo::rerun-if-changed={WAI_ARIA}"); + println!("cargo::rerun-if-changed={GRAPHICS_ARIA}"); + println!("cargo::rerun-if-changed={DPUB_ARIA}"); + + let text = std::fs::read_to_string(WAI_ARIA)?; + let wair_aria: Aria = serde_json::from_str(&text)?; + + let text = std::fs::read_to_string(DPUB_ARIA)?; + let dpub_aria: Aria = serde_json::from_str(&text)?; + + let text = std::fs::read_to_string(GRAPHICS_ARIA)?; + let graphics_aria: Aria = serde_json::from_str(&text)?; - let text = std::fs::read_to_string("aria-data.json")?; - let data: Aria = serde_json::from_str(&text)?; + let mut aria = graphics_aria; + aria.merge_with(dpub_aria); + aria.merge_with(wair_aria); - let aria_attributes = generate_aria_attributes(&data.attributes); - let aria_roles = generate_aria_roles(&data); + let aria_attributes = generate_aria_attributes(&aria.attributes); + let aria_roles = generate_aria_roles(&aria); let iso_countries = generate_enums(ISO_COUNTRIES, "IsoCountries"); let iso_languages = generate_enums(ISO_LANGUAGES, "IsoLanguages"); @@ -268,7 +286,7 @@ fn main() -> io::Result<()> { // We print the code even if it cannot be parsed, // this allows to debug the code by directly looking at it. let out_dir = env::var("OUT_DIR").unwrap(); - fs::write(PathBuf::from(out_dir).join("roles_and_properties.rs"), ast)?; + fs::write(PathBuf::from(out_dir).join("roles_and_attributes.rs"), ast)?; Ok(()) } diff --git a/crates/biome_aria_metadata/src/lib.rs b/crates/biome_aria_metadata/src/lib.rs index 5d79214e3369..c87697078f43 100644 --- a/crates/biome_aria_metadata/src/lib.rs +++ b/crates/biome_aria_metadata/src/lib.rs @@ -1,4 +1,4 @@ -include!(concat!(env!("OUT_DIR"), "/roles_and_properties.rs")); +include!(concat!(env!("OUT_DIR"), "/roles_and_attributes.rs")); pub const ISO_COUNTRIES: [&str; 233] = [ "AF", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BS", diff --git a/crates/biome_deserialize/src/merge.rs b/crates/biome_deserialize/src/merge.rs index 03f2b676d87d..823d1bb48991 100644 --- a/crates/biome_deserialize/src/merge.rs +++ b/crates/biome_deserialize/src/merge.rs @@ -53,6 +53,12 @@ impl Merge } } +impl Merge for std::collections::BTreeSet { + fn merge_with(&mut self, other: Self) { + self.extend(other); + } +} + impl Merge for std::collections::BTreeMap { fn merge_with(&mut self, other: Self) { for (k, v) in other { diff --git a/packages/aria-data/README.md b/packages/aria-data/README.md index c23c92bb7443..d68338c4b11d 100644 --- a/packages/aria-data/README.md +++ b/packages/aria-data/README.md @@ -1,10 +1,10 @@ # ARIA data -This package provides a script that extracts data from the ARIA specification. -This is a best effort approach because the ARIA specification is in a semi-structured representation. +This package provides a script that extracts data from an ARIA specification. +This is a best effort approach because the ARIA specifications are in a semi-structured representation. -Just call the script with the version of the ARIA specification and write t oa given file: +Just call the script with the name an dversion of the ARIA specification and write to a given file: ```shell -node generate-aria-data.js 1.2 >| aria-data-1-2.json +node generate-aria-data.js wai-aria-1.2 >| wai-aria-1-2.json ``` diff --git a/packages/aria-data/dpub-aria-1-0.json b/packages/aria-data/dpub-aria-1-0.json new file mode 100644 index 000000000000..c28939f15d6f --- /dev/null +++ b/packages/aria-data/dpub-aria-1-0.json @@ -0,0 +1,1643 @@ +{ + "permalink": "https://www.w3.org/TR/2017/REC-dpub-aria-1.0-20171214/", + "url": "https://www.w3.org/TR/dpub-aria-1.0/", + "version": "1.0", + "roles": { + "doc-abstract": { + "description": "A short summary of the principle ideas, concepts and conclusions of the work, or of a section or excerpt within it.", + "isAbstract": false, + "superclassRoles": [ + "section" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB abstract [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-details", + "aria-disabled", + "aria-dropeffect", + "aria-errormessage", + "aria-expanded", + "aria-flowto", + "aria-grabbed", + "aria-haspopup", + "aria-hidden", + "aria-invalid", + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-acknowledgments": { + "description": "A section or statement that acknowledges significant contributions by persons, organizations, governments and other entities to the realization of the work.", + "isAbstract": false, + "superclassRoles": [ + "landmark" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB acknowledgments [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-details", + "aria-disabled", + "aria-dropeffect", + "aria-errormessage", + "aria-expanded", + "aria-flowto", + "aria-grabbed", + "aria-haspopup", + "aria-hidden", + "aria-invalid", + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-afterword": { + "description": "A closing statement from the author or a person of importance, typically providing insight into how the content came to be written, its significance, or related events that have transpired since its timeline.", + "isAbstract": false, + "superclassRoles": [ + "landmark" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB afterword [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-details", + "aria-disabled", + "aria-dropeffect", + "aria-errormessage", + "aria-expanded", + "aria-flowto", + "aria-grabbed", + "aria-haspopup", + "aria-hidden", + "aria-invalid", + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-appendix": { + "description": "A section of supplemental information located after the primary content that informs the content but is not central to it.", + "isAbstract": false, + "superclassRoles": [ + "landmark" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB appendix [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-details", + "aria-disabled", + "aria-dropeffect", + "aria-errormessage", + "aria-expanded", + "aria-flowto", + "aria-grabbed", + "aria-haspopup", + "aria-hidden", + "aria-invalid", + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-backlink": { + "description": "A link that allows the user to return to a related location in the content (e.g., from a footnote to its reference or from a glossary definition to where a term is used).", + "isAbstract": false, + "superclassRoles": [ + "link" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB referrer [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-details", + "aria-disabled", + "aria-dropeffect", + "aria-errormessage", + "aria-expanded", + "aria-flowto", + "aria-grabbed", + "aria-haspopup", + "aria-hidden", + "aria-invalid", + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "contents", + "author" + ], + "isAccessibleNameRequired": true, + "hasPresentationalChildren": false + }, + "doc-biblioentry": { + "description": "A single reference to an external source in a bibliography. A biblioentry typically provides more detailed\t\t\t\t\tinformation than its reference(s) in the content (e.g., full title, author(s), publisher, publication date, etc.).", + "isAbstract": false, + "superclassRoles": [ + "listitem" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB biblioentry [EPUB-SSV]" + } + ], + "requiredParentRoles": [ + "doc-bibliography" + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-details", + "aria-disabled", + "aria-dropeffect", + "aria-errormessage", + "aria-expanded", + "aria-flowto", + "aria-grabbed", + "aria-haspopup", + "aria-hidden", + "aria-invalid", + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-level", + "aria-live", + "aria-owns", + "aria-posinset", + "aria-relevant", + "aria-roledescription", + "aria-setsize" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": true, + "hasPresentationalChildren": false + }, + "doc-bibliography": { + "description": "A list of external references cited in the work, which may be to print or digital sources.", + "isAbstract": false, + "superclassRoles": [ + "landmark" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB bibliography [EPUB-SSV]" + } + ], + "allowedChildRoles": [ + "doc-biblioentry" + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-details", + "aria-disabled", + "aria-dropeffect", + "aria-errormessage", + "aria-expanded", + "aria-flowto", + "aria-grabbed", + "aria-haspopup", + "aria-hidden", + "aria-invalid", + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-biblioref": { + "description": "A reference to a bibliography entry.", + "isAbstract": false, + "superclassRoles": [ + "link" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB biblioref [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-details", + "aria-disabled", + "aria-dropeffect", + "aria-errormessage", + "aria-expanded", + "aria-flowto", + "aria-grabbed", + "aria-haspopup", + "aria-hidden", + "aria-invalid", + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "contents", + "author" + ], + "isAccessibleNameRequired": true, + "hasPresentationalChildren": false + }, + "doc-chapter": { + "description": "A major thematic section of content in a work.", + "isAbstract": false, + "superclassRoles": [ + "landmark" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB chapter [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-details", + "aria-disabled", + "aria-dropeffect", + "aria-errormessage", + "aria-expanded", + "aria-flowto", + "aria-grabbed", + "aria-haspopup", + "aria-hidden", + "aria-invalid", + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-colophon": { + "description": "A short section of production notes particular to the edition (e.g., describing the typeface used), often located at the end of a work.", + "isAbstract": false, + "superclassRoles": [ + "section" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB colophon [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-details", + "aria-disabled", + "aria-dropeffect", + "aria-errormessage", + "aria-expanded", + "aria-flowto", + "aria-grabbed", + "aria-haspopup", + "aria-hidden", + "aria-invalid", + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-conclusion": { + "description": "A concluding section or statement that summarizes the work or wraps up the narrative.", + "isAbstract": false, + "superclassRoles": [ + "landmark" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB conclusion [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-details", + "aria-disabled", + "aria-dropeffect", + "aria-errormessage", + "aria-expanded", + "aria-flowto", + "aria-grabbed", + "aria-haspopup", + "aria-hidden", + "aria-invalid", + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-cover": { + "description": "An image that sets the mood or tone for the work and typically includes the title and author.", + "isAbstract": false, + "superclassRoles": [ + "img" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB cover [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-details", + "aria-disabled", + "aria-dropeffect", + "aria-errormessage", + "aria-expanded", + "aria-flowto", + "aria-grabbed", + "aria-haspopup", + "aria-hidden", + "aria-invalid", + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-credit": { + "description": "An acknowledgment of the source of integrated content from third-party sources, such as photos. Typically identifies the creator, copyright and any restrictions on reuse.", + "isAbstract": false, + "superclassRoles": [ + "section" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB credit [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-details", + "aria-disabled", + "aria-dropeffect", + "aria-errormessage", + "aria-expanded", + "aria-flowto", + "aria-grabbed", + "aria-haspopup", + "aria-hidden", + "aria-invalid", + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-credits": { + "description": "A collection of credits.", + "isAbstract": false, + "superclassRoles": [ + "landmark" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB credits [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-details", + "aria-disabled", + "aria-dropeffect", + "aria-errormessage", + "aria-expanded", + "aria-flowto", + "aria-grabbed", + "aria-haspopup", + "aria-hidden", + "aria-invalid", + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-dedication": { + "description": "An inscription at the front of the work, typically addressed in tribute to one or more persons close to the author.", + "isAbstract": false, + "superclassRoles": [ + "section" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB dedication [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-details", + "aria-disabled", + "aria-dropeffect", + "aria-errormessage", + "aria-expanded", + "aria-flowto", + "aria-grabbed", + "aria-haspopup", + "aria-hidden", + "aria-invalid", + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-endnote": { + "description": "One of a collection of notes that occur at the end of a work, or a section within it,\t\t\t\t\tthat provides additional context to a referenced passage of text.", + "isAbstract": false, + "superclassRoles": [ + "listitem" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB rearnote [EPUB-SSV]" + } + ], + "requiredParentRoles": [ + "doc-endnotes" + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-details", + "aria-disabled", + "aria-dropeffect", + "aria-errormessage", + "aria-expanded", + "aria-flowto", + "aria-grabbed", + "aria-haspopup", + "aria-hidden", + "aria-invalid", + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-level", + "aria-live", + "aria-owns", + "aria-posinset", + "aria-relevant", + "aria-roledescription", + "aria-setsize" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-endnotes": { + "description": "A collection of notes at the end of a work or a section within it.", + "isAbstract": false, + "superclassRoles": [ + "landmark" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB rearnotes [EPUB-SSV]" + } + ], + "allowedChildRoles": [ + "doc-endnote" + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-details", + "aria-disabled", + "aria-dropeffect", + "aria-errormessage", + "aria-expanded", + "aria-flowto", + "aria-grabbed", + "aria-haspopup", + "aria-hidden", + "aria-invalid", + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-epigraph": { + "description": "A quotation set at the start of the work or a section that establishes the theme or sets the mood.", + "isAbstract": false, + "superclassRoles": [ + "section" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB epigraph [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-details", + "aria-disabled", + "aria-dropeffect", + "aria-errormessage", + "aria-expanded", + "aria-flowto", + "aria-grabbed", + "aria-haspopup", + "aria-hidden", + "aria-invalid", + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-epilogue": { + "description": "A concluding section of narrative that wraps up or comments on the actions and events of the work, typically from a future perspective.", + "isAbstract": false, + "superclassRoles": [ + "landmark" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB epilogue [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-details", + "aria-disabled", + "aria-dropeffect", + "aria-errormessage", + "aria-expanded", + "aria-flowto", + "aria-grabbed", + "aria-haspopup", + "aria-hidden", + "aria-invalid", + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-errata": { + "description": "A set of corrections discovered after initial publication of the work, sometimes referred to as corrigenda.", + "isAbstract": false, + "superclassRoles": [ + "landmark" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB errata [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-details", + "aria-disabled", + "aria-dropeffect", + "aria-errormessage", + "aria-expanded", + "aria-flowto", + "aria-grabbed", + "aria-haspopup", + "aria-hidden", + "aria-invalid", + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-example": { + "description": "An illustratration of a key concept of the work, such as a code listing, case study or problem.", + "isAbstract": false, + "superclassRoles": [ + "section" + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-details", + "aria-disabled", + "aria-dropeffect", + "aria-errormessage", + "aria-expanded", + "aria-flowto", + "aria-grabbed", + "aria-haspopup", + "aria-hidden", + "aria-invalid", + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-footnote": { + "description": "Ancillary information, such as a citation or commentary, that provides additional context to a referenced passage of text.", + "isAbstract": false, + "superclassRoles": [ + "section" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB footnote [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-details", + "aria-disabled", + "aria-dropeffect", + "aria-errormessage", + "aria-expanded", + "aria-flowto", + "aria-grabbed", + "aria-haspopup", + "aria-hidden", + "aria-invalid", + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-foreword": { + "description": "An introductory section that precedes the work, typically not written by the author of the work.", + "isAbstract": false, + "superclassRoles": [ + "landmark" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB foreword [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-details", + "aria-disabled", + "aria-dropeffect", + "aria-errormessage", + "aria-expanded", + "aria-flowto", + "aria-grabbed", + "aria-haspopup", + "aria-hidden", + "aria-invalid", + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-glossary": { + "description": "A brief dictionary of new, uncommon or specialized terms used in the content.", + "isAbstract": false, + "superclassRoles": [ + "landmark" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB glossary [EPUB-SSV]" + } + ], + "allowedChildRoles": [ + "term", + "definition" + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-details", + "aria-disabled", + "aria-dropeffect", + "aria-errormessage", + "aria-expanded", + "aria-flowto", + "aria-grabbed", + "aria-haspopup", + "aria-hidden", + "aria-invalid", + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-glossref": { + "description": "A reference to a glossary definition.", + "isAbstract": false, + "superclassRoles": [ + "link" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB glossref [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-details", + "aria-disabled", + "aria-dropeffect", + "aria-errormessage", + "aria-expanded", + "aria-flowto", + "aria-grabbed", + "aria-haspopup", + "aria-hidden", + "aria-invalid", + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "contents", + "author" + ], + "isAccessibleNameRequired": true, + "hasPresentationalChildren": false + }, + "doc-index": { + "description": "A navigational aid that provides a detailed list of links to key subjects, names and other important topics covered in the work.", + "isAbstract": false, + "superclassRoles": [ + "navigation" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB index [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-details", + "aria-disabled", + "aria-dropeffect", + "aria-errormessage", + "aria-expanded", + "aria-flowto", + "aria-grabbed", + "aria-haspopup", + "aria-hidden", + "aria-invalid", + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-introduction": { + "description": "A preliminary section that typically introduces the scope or nature of the work.", + "isAbstract": false, + "superclassRoles": [ + "landmark" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB introduction [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-details", + "aria-disabled", + "aria-dropeffect", + "aria-errormessage", + "aria-expanded", + "aria-flowto", + "aria-grabbed", + "aria-haspopup", + "aria-hidden", + "aria-invalid", + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-noteref": { + "description": "A reference to a footnote or endnote, typically appearing as a superscripted number or symbol in the main body of text.", + "isAbstract": false, + "superclassRoles": [ + "link" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB noteref [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-details", + "aria-disabled", + "aria-dropeffect", + "aria-errormessage", + "aria-expanded", + "aria-flowto", + "aria-grabbed", + "aria-haspopup", + "aria-hidden", + "aria-invalid", + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "contents", + "author" + ], + "isAccessibleNameRequired": true, + "hasPresentationalChildren": false + }, + "doc-notice": { + "description": "Notifies the user of consequences that might arise from an action or event. Examples include warnings, cautions and dangers.", + "isAbstract": false, + "superclassRoles": [ + "note" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB notice [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-details", + "aria-disabled", + "aria-dropeffect", + "aria-errormessage", + "aria-expanded", + "aria-flowto", + "aria-grabbed", + "aria-haspopup", + "aria-hidden", + "aria-invalid", + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-pagebreak": { + "description": "A separator denoting the position before which a break occurs between two contiguous pages in a statically paginated version of the content.", + "isAbstract": false, + "superclassRoles": [ + "separator" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB pagebreak [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-details", + "aria-disabled", + "aria-dropeffect", + "aria-errormessage", + "aria-expanded", + "aria-flowto", + "aria-grabbed", + "aria-haspopup", + "aria-hidden", + "aria-invalid", + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-orientation", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": true, + "hasPresentationalChildren": true + }, + "doc-pagelist": { + "description": "A navigational aid that provides a list of links to the pagebreaks in the content.", + "isAbstract": false, + "superclassRoles": [ + "navigation" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB page-list [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-details", + "aria-disabled", + "aria-dropeffect", + "aria-errormessage", + "aria-expanded", + "aria-flowto", + "aria-grabbed", + "aria-haspopup", + "aria-hidden", + "aria-invalid", + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-part": { + "description": "A major structural division in a work that contains a set of related sections dealing with a particular subject, narrative arc or similar encapsulated theme.", + "isAbstract": false, + "superclassRoles": [ + "landmark" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB part [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-details", + "aria-disabled", + "aria-dropeffect", + "aria-errormessage", + "aria-expanded", + "aria-flowto", + "aria-grabbed", + "aria-haspopup", + "aria-hidden", + "aria-invalid", + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": true, + "hasPresentationalChildren": false + }, + "doc-preface": { + "description": "An introductory section that precedes the work, typically written by the author of the work.", + "isAbstract": false, + "superclassRoles": [ + "landmark" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB preface [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-details", + "aria-disabled", + "aria-dropeffect", + "aria-errormessage", + "aria-expanded", + "aria-flowto", + "aria-grabbed", + "aria-haspopup", + "aria-hidden", + "aria-invalid", + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-prologue": { + "description": "An introductory section that sets the background to a work, typically part of the narrative.", + "isAbstract": false, + "superclassRoles": [ + "landmark" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB prologue [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-details", + "aria-disabled", + "aria-dropeffect", + "aria-errormessage", + "aria-expanded", + "aria-flowto", + "aria-grabbed", + "aria-haspopup", + "aria-hidden", + "aria-invalid", + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-pullquote": { + "description": "A distinctively placed or highlighted quotation from the current content designed to draw attention to a topic or highlight a key point.", + "isAbstract": false, + "superclassRoles": [ + "none" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB pullquote [EPUB-SSV]" + } + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-qna": { + "description": "A section of content structured as a series of questions and answers, such as an interview or list of frequently asked questions.", + "isAbstract": false, + "superclassRoles": [ + "section" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB qna [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-details", + "aria-disabled", + "aria-dropeffect", + "aria-errormessage", + "aria-expanded", + "aria-flowto", + "aria-grabbed", + "aria-haspopup", + "aria-hidden", + "aria-invalid", + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-subtitle": { + "description": "An explanatory or alternate title for the work, or a section or component within it.", + "isAbstract": false, + "superclassRoles": [ + "sectionhead" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB subtitle [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-details", + "aria-disabled", + "aria-dropeffect", + "aria-errormessage", + "aria-expanded", + "aria-flowto", + "aria-grabbed", + "aria-haspopup", + "aria-hidden", + "aria-invalid", + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-tip": { + "description": "Helpful information that clarifies some aspect of the content or assists in its comprehension.", + "isAbstract": false, + "superclassRoles": [ + "note" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB help [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-details", + "aria-disabled", + "aria-dropeffect", + "aria-errormessage", + "aria-expanded", + "aria-flowto", + "aria-grabbed", + "aria-haspopup", + "aria-hidden", + "aria-invalid", + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-toc": { + "description": "A navigational aid that provides an ordered list of links to the major sectional headings in the content. A table of contents may cover an entire work, or only a smaller section of it.", + "isAbstract": false, + "superclassRoles": [ + "navigation" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB toc [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-details", + "aria-disabled", + "aria-dropeffect", + "aria-errormessage", + "aria-expanded", + "aria-flowto", + "aria-grabbed", + "aria-haspopup", + "aria-hidden", + "aria-invalid", + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + } + }, + "attributes": {} +} diff --git a/packages/aria-data/dpub-aria-1-1.json b/packages/aria-data/dpub-aria-1-1.json new file mode 100644 index 000000000000..221295750f36 --- /dev/null +++ b/packages/aria-data/dpub-aria-1-1.json @@ -0,0 +1,2307 @@ +{ + "permalink": "https://www.w3.org/TR/2024/CRD-dpub-aria-1.1-20240621/", + "url": "https://www.w3.org/TR/dpub-aria-1.1/", + "version": "1.1", + "roles": { + "doc-abstract": { + "description": "A short summary of the principal ideas, concepts, and conclusions of the work, or of a section or excerpt within it.", + "isAbstract": false, + "superclassRoles": [ + "section" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB abstract [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-braillelabel", + "aria-brailleroledescription", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-description", + "aria-details", + { + "name": "aria-disabled", + "deprecatedInVersion": "1.2" + }, + "aria-dropeffect", + { + "name": "aria-errormessage", + "deprecatedInVersion": "1.2" + }, + "aria-flowto", + "aria-grabbed", + { + "name": "aria-haspopup", + "deprecatedInVersion": "1.2" + }, + "aria-hidden", + { + "name": "aria-invalid", + "deprecatedInVersion": "1.2" + }, + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-acknowledgments": { + "description": "A section or statement that acknowledges significant contributions by persons, organizations, governments, and other entities to the realization of the work.", + "isAbstract": false, + "superclassRoles": [ + "landmark" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB acknowledgments [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-braillelabel", + "aria-brailleroledescription", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-description", + "aria-details", + { + "name": "aria-disabled", + "deprecatedInVersion": "1.2" + }, + "aria-dropeffect", + { + "name": "aria-errormessage", + "deprecatedInVersion": "1.2" + }, + "aria-flowto", + "aria-grabbed", + { + "name": "aria-haspopup", + "deprecatedInVersion": "1.2" + }, + "aria-hidden", + { + "name": "aria-invalid", + "deprecatedInVersion": "1.2" + }, + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-afterword": { + "description": "A closing statement from the author or a person of importance, typically providing insight into how the content came to be written, its significance, or related events that havetranspired since its timeline.", + "isAbstract": false, + "superclassRoles": [ + "landmark" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB afterword [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-braillelabel", + "aria-brailleroledescription", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-description", + "aria-details", + { + "name": "aria-disabled", + "deprecatedInVersion": "1.2" + }, + "aria-dropeffect", + { + "name": "aria-errormessage", + "deprecatedInVersion": "1.2" + }, + "aria-flowto", + "aria-grabbed", + { + "name": "aria-haspopup", + "deprecatedInVersion": "1.2" + }, + "aria-hidden", + { + "name": "aria-invalid", + "deprecatedInVersion": "1.2" + }, + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-appendix": { + "description": "A section of supplemental information located after the primary content that informs the content but is not central to it.", + "isAbstract": false, + "superclassRoles": [ + "landmark" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB appendix [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-braillelabel", + "aria-brailleroledescription", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-description", + "aria-details", + { + "name": "aria-disabled", + "deprecatedInVersion": "1.2" + }, + "aria-dropeffect", + { + "name": "aria-errormessage", + "deprecatedInVersion": "1.2" + }, + "aria-flowto", + "aria-grabbed", + { + "name": "aria-haspopup", + "deprecatedInVersion": "1.2" + }, + "aria-hidden", + { + "name": "aria-invalid", + "deprecatedInVersion": "1.2" + }, + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-backlink": { + "description": "A link that allows the user to return to a related location in the content (e.g., from a footnote to its reference or from a glossary definition to where a term is used).", + "isAbstract": false, + "superclassRoles": [ + "link" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB referrer [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-disabled", + "aria-expanded", + "aria-haspopup", + "aria-atomic", + "aria-braillelabel", + "aria-brailleroledescription", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-description", + "aria-details", + { + "name": "aria-disabled", + "deprecatedInVersion": "1.2" + }, + "aria-dropeffect", + { + "name": "aria-errormessage", + "deprecatedInVersion": "1.2" + }, + "aria-flowto", + "aria-grabbed", + { + "name": "aria-haspopup", + "deprecatedInVersion": "1.2" + }, + "aria-hidden", + { + "name": "aria-invalid", + "deprecatedInVersion": "1.2" + }, + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "contents", + "author" + ], + "isAccessibleNameRequired": true, + "hasPresentationalChildren": false + }, + "doc-biblioentry": { + "description": "[Deprecated in DPUB-ARIA 1.1] A single reference to an external source in a bibliography. A biblioentry typically provides more detailed information than its reference(s) in the content(e.g., full title, author(s), publisher, publication date, etc.).", + "isAbstract": false, + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB biblioentry [EPUB-SSV]" + } + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": true, + "hasPresentationalChildren": false + }, + "doc-bibliography": { + "description": "A list of external references cited in the work, which may be to print or digital sources.", + "isAbstract": false, + "superclassRoles": [ + "landmark" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB bibliography [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-braillelabel", + "aria-brailleroledescription", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-description", + "aria-details", + { + "name": "aria-disabled", + "deprecatedInVersion": "1.2" + }, + "aria-dropeffect", + { + "name": "aria-errormessage", + "deprecatedInVersion": "1.2" + }, + "aria-flowto", + "aria-grabbed", + { + "name": "aria-haspopup", + "deprecatedInVersion": "1.2" + }, + "aria-hidden", + { + "name": "aria-invalid", + "deprecatedInVersion": "1.2" + }, + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-biblioref": { + "description": "A reference to a bibliography entry.", + "isAbstract": false, + "superclassRoles": [ + "link" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB biblioref [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-disabled", + "aria-expanded", + "aria-haspopup", + "aria-atomic", + "aria-braillelabel", + "aria-brailleroledescription", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-description", + "aria-details", + { + "name": "aria-disabled", + "deprecatedInVersion": "1.2" + }, + "aria-dropeffect", + { + "name": "aria-errormessage", + "deprecatedInVersion": "1.2" + }, + "aria-flowto", + "aria-grabbed", + { + "name": "aria-haspopup", + "deprecatedInVersion": "1.2" + }, + "aria-hidden", + { + "name": "aria-invalid", + "deprecatedInVersion": "1.2" + }, + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "contents", + "author" + ], + "isAccessibleNameRequired": true, + "hasPresentationalChildren": false + }, + "doc-chapter": { + "description": "A major thematic section of content in a work.", + "isAbstract": false, + "superclassRoles": [ + "landmark" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB chapter [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-braillelabel", + "aria-brailleroledescription", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-description", + "aria-details", + { + "name": "aria-disabled", + "deprecatedInVersion": "1.2" + }, + "aria-dropeffect", + { + "name": "aria-errormessage", + "deprecatedInVersion": "1.2" + }, + "aria-flowto", + "aria-grabbed", + { + "name": "aria-haspopup", + "deprecatedInVersion": "1.2" + }, + "aria-hidden", + { + "name": "aria-invalid", + "deprecatedInVersion": "1.2" + }, + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-colophon": { + "description": "A short section of production notes particular to the edition (e.g., describing the typeface used), often located at the end of a work.", + "isAbstract": false, + "superclassRoles": [ + "section" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB colophon [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-braillelabel", + "aria-brailleroledescription", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-description", + "aria-details", + { + "name": "aria-disabled", + "deprecatedInVersion": "1.2" + }, + "aria-dropeffect", + { + "name": "aria-errormessage", + "deprecatedInVersion": "1.2" + }, + "aria-flowto", + "aria-grabbed", + { + "name": "aria-haspopup", + "deprecatedInVersion": "1.2" + }, + "aria-hidden", + { + "name": "aria-invalid", + "deprecatedInVersion": "1.2" + }, + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-conclusion": { + "description": "A concluding section or statement that summarizes the work or wraps up the narrative.", + "isAbstract": false, + "superclassRoles": [ + "landmark" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB conclusion [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-braillelabel", + "aria-brailleroledescription", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-description", + "aria-details", + { + "name": "aria-disabled", + "deprecatedInVersion": "1.2" + }, + "aria-dropeffect", + { + "name": "aria-errormessage", + "deprecatedInVersion": "1.2" + }, + "aria-flowto", + "aria-grabbed", + { + "name": "aria-haspopup", + "deprecatedInVersion": "1.2" + }, + "aria-hidden", + { + "name": "aria-invalid", + "deprecatedInVersion": "1.2" + }, + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-cover": { + "description": "An image that sets the mood or tone for the work and typically includes the title and author.", + "isAbstract": false, + "superclassRoles": [ + "img" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB cover [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-braillelabel", + "aria-brailleroledescription", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-description", + "aria-details", + { + "name": "aria-disabled", + "deprecatedInVersion": "1.2" + }, + "aria-dropeffect", + { + "name": "aria-errormessage", + "deprecatedInVersion": "1.2" + }, + "aria-flowto", + "aria-grabbed", + { + "name": "aria-haspopup", + "deprecatedInVersion": "1.2" + }, + "aria-hidden", + { + "name": "aria-invalid", + "deprecatedInVersion": "1.2" + }, + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-credit": { + "description": "An acknowledgment of the source of integrated content from third-party sources, such as photos. Typically identifies the creator, copyright, and any restrictions on reuse.", + "isAbstract": false, + "superclassRoles": [ + "section" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB credit [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-braillelabel", + "aria-brailleroledescription", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-description", + "aria-details", + { + "name": "aria-disabled", + "deprecatedInVersion": "1.2" + }, + "aria-dropeffect", + { + "name": "aria-errormessage", + "deprecatedInVersion": "1.2" + }, + "aria-flowto", + "aria-grabbed", + { + "name": "aria-haspopup", + "deprecatedInVersion": "1.2" + }, + "aria-hidden", + { + "name": "aria-invalid", + "deprecatedInVersion": "1.2" + }, + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-credits": { + "description": "A collection of credits.", + "isAbstract": false, + "superclassRoles": [ + "landmark" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB credits [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-braillelabel", + "aria-brailleroledescription", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-description", + "aria-details", + { + "name": "aria-disabled", + "deprecatedInVersion": "1.2" + }, + "aria-dropeffect", + { + "name": "aria-errormessage", + "deprecatedInVersion": "1.2" + }, + "aria-flowto", + "aria-grabbed", + { + "name": "aria-haspopup", + "deprecatedInVersion": "1.2" + }, + "aria-hidden", + { + "name": "aria-invalid", + "deprecatedInVersion": "1.2" + }, + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-dedication": { + "description": "An inscription at the front of the work, typically addressed in tribute to one or more persons close to the author.", + "isAbstract": false, + "superclassRoles": [ + "section" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB dedication [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-braillelabel", + "aria-brailleroledescription", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-description", + "aria-details", + { + "name": "aria-disabled", + "deprecatedInVersion": "1.2" + }, + "aria-dropeffect", + { + "name": "aria-errormessage", + "deprecatedInVersion": "1.2" + }, + "aria-flowto", + "aria-grabbed", + { + "name": "aria-haspopup", + "deprecatedInVersion": "1.2" + }, + "aria-hidden", + { + "name": "aria-invalid", + "deprecatedInVersion": "1.2" + }, + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-endnote": { + "description": "[Deprecated in DPUB-ARIA 1.1] One of a collection of notes that occur at the end of a work, or a section within it, that provides additional context to a referenced passage of text.", + "isAbstract": false, + "superclassRoles": [ + "listitem" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB rearnote [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-posinset", + "aria-setsize", + "aria-atomic", + "aria-braillelabel", + "aria-brailleroledescription", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-description", + "aria-details", + { + "name": "aria-disabled", + "deprecatedInVersion": "1.2" + }, + "aria-dropeffect", + { + "name": "aria-errormessage", + "deprecatedInVersion": "1.2" + }, + "aria-flowto", + "aria-grabbed", + { + "name": "aria-haspopup", + "deprecatedInVersion": "1.2" + }, + "aria-hidden", + { + "name": "aria-invalid", + "deprecatedInVersion": "1.2" + }, + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-endnotes": { + "description": "A collection of notes at the end of a work or a section within it.", + "isAbstract": false, + "superclassRoles": [ + "landmark" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB rearnotes [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-braillelabel", + "aria-brailleroledescription", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-description", + "aria-details", + { + "name": "aria-disabled", + "deprecatedInVersion": "1.2" + }, + "aria-dropeffect", + { + "name": "aria-errormessage", + "deprecatedInVersion": "1.2" + }, + "aria-flowto", + "aria-grabbed", + { + "name": "aria-haspopup", + "deprecatedInVersion": "1.2" + }, + "aria-hidden", + { + "name": "aria-invalid", + "deprecatedInVersion": "1.2" + }, + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-epigraph": { + "description": "A quotation set at the start of the work or a section that establishes the theme or sets the mood.", + "isAbstract": false, + "superclassRoles": [ + "section" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB epigraph [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-braillelabel", + "aria-brailleroledescription", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-description", + "aria-details", + { + "name": "aria-disabled", + "deprecatedInVersion": "1.2" + }, + "aria-dropeffect", + { + "name": "aria-errormessage", + "deprecatedInVersion": "1.2" + }, + "aria-flowto", + "aria-grabbed", + { + "name": "aria-haspopup", + "deprecatedInVersion": "1.2" + }, + "aria-hidden", + { + "name": "aria-invalid", + "deprecatedInVersion": "1.2" + }, + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-epilogue": { + "description": "A concluding section of narrative that wraps up or comments on the actions and events of the work, typically from a future perspective.", + "isAbstract": false, + "superclassRoles": [ + "landmark" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB epilogue [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-braillelabel", + "aria-brailleroledescription", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-description", + "aria-details", + { + "name": "aria-disabled", + "deprecatedInVersion": "1.2" + }, + "aria-dropeffect", + { + "name": "aria-errormessage", + "deprecatedInVersion": "1.2" + }, + "aria-flowto", + "aria-grabbed", + { + "name": "aria-haspopup", + "deprecatedInVersion": "1.2" + }, + "aria-hidden", + { + "name": "aria-invalid", + "deprecatedInVersion": "1.2" + }, + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-errata": { + "description": "A set of corrections discovered after initial publication of the work, sometimes referred to as corrigenda.", + "isAbstract": false, + "superclassRoles": [ + "landmark" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB errata [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-braillelabel", + "aria-brailleroledescription", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-description", + "aria-details", + { + "name": "aria-disabled", + "deprecatedInVersion": "1.2" + }, + "aria-dropeffect", + { + "name": "aria-errormessage", + "deprecatedInVersion": "1.2" + }, + "aria-flowto", + "aria-grabbed", + { + "name": "aria-haspopup", + "deprecatedInVersion": "1.2" + }, + "aria-hidden", + { + "name": "aria-invalid", + "deprecatedInVersion": "1.2" + }, + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-example": { + "description": "An illustration of a key concept of the work, such as a code listing, case study or problem.", + "isAbstract": false, + "superclassRoles": [ + "figure" + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-braillelabel", + "aria-brailleroledescription", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-description", + "aria-details", + { + "name": "aria-disabled", + "deprecatedInVersion": "1.2" + }, + "aria-dropeffect", + { + "name": "aria-errormessage", + "deprecatedInVersion": "1.2" + }, + "aria-flowto", + "aria-grabbed", + { + "name": "aria-haspopup", + "deprecatedInVersion": "1.2" + }, + "aria-hidden", + { + "name": "aria-invalid", + "deprecatedInVersion": "1.2" + }, + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-footnote": { + "description": "Ancillary information, such as a citation or commentary, that provides additional context to a referenced passage of text.", + "isAbstract": false, + "superclassRoles": [ + "section" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB footnote [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-braillelabel", + "aria-brailleroledescription", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-description", + "aria-details", + { + "name": "aria-disabled", + "deprecatedInVersion": "1.2" + }, + "aria-dropeffect", + { + "name": "aria-errormessage", + "deprecatedInVersion": "1.2" + }, + "aria-flowto", + "aria-grabbed", + { + "name": "aria-haspopup", + "deprecatedInVersion": "1.2" + }, + "aria-hidden", + { + "name": "aria-invalid", + "deprecatedInVersion": "1.2" + }, + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-foreword": { + "description": "An introductory section that precedes the work, typically not written by the author of the work.", + "isAbstract": false, + "superclassRoles": [ + "landmark" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB foreword [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-braillelabel", + "aria-brailleroledescription", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-description", + "aria-details", + { + "name": "aria-disabled", + "deprecatedInVersion": "1.2" + }, + "aria-dropeffect", + { + "name": "aria-errormessage", + "deprecatedInVersion": "1.2" + }, + "aria-flowto", + "aria-grabbed", + { + "name": "aria-haspopup", + "deprecatedInVersion": "1.2" + }, + "aria-hidden", + { + "name": "aria-invalid", + "deprecatedInVersion": "1.2" + }, + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-glossary": { + "description": "A brief dictionary of new, uncommon, or specialized terms used in the content.", + "isAbstract": false, + "superclassRoles": [ + "landmark" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB glossary [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-braillelabel", + "aria-brailleroledescription", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-description", + "aria-details", + { + "name": "aria-disabled", + "deprecatedInVersion": "1.2" + }, + "aria-dropeffect", + { + "name": "aria-errormessage", + "deprecatedInVersion": "1.2" + }, + "aria-flowto", + "aria-grabbed", + { + "name": "aria-haspopup", + "deprecatedInVersion": "1.2" + }, + "aria-hidden", + { + "name": "aria-invalid", + "deprecatedInVersion": "1.2" + }, + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-glossref": { + "description": "A reference to a glossary definition.", + "isAbstract": false, + "superclassRoles": [ + "link" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB glossref [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-disabled", + "aria-expanded", + "aria-haspopup", + "aria-atomic", + "aria-braillelabel", + "aria-brailleroledescription", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-description", + "aria-details", + { + "name": "aria-disabled", + "deprecatedInVersion": "1.2" + }, + "aria-dropeffect", + { + "name": "aria-errormessage", + "deprecatedInVersion": "1.2" + }, + "aria-flowto", + "aria-grabbed", + { + "name": "aria-haspopup", + "deprecatedInVersion": "1.2" + }, + "aria-hidden", + { + "name": "aria-invalid", + "deprecatedInVersion": "1.2" + }, + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "contents", + "author" + ], + "isAccessibleNameRequired": true, + "hasPresentationalChildren": false + }, + "doc-index": { + "description": "A navigational aid that provides a detailed list of links to key subjects, names and other important topics covered in the work.", + "isAbstract": false, + "superclassRoles": [ + "navigation" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB index [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-braillelabel", + "aria-brailleroledescription", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-description", + "aria-details", + { + "name": "aria-disabled", + "deprecatedInVersion": "1.2" + }, + "aria-dropeffect", + { + "name": "aria-errormessage", + "deprecatedInVersion": "1.2" + }, + "aria-flowto", + "aria-grabbed", + { + "name": "aria-haspopup", + "deprecatedInVersion": "1.2" + }, + "aria-hidden", + { + "name": "aria-invalid", + "deprecatedInVersion": "1.2" + }, + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-introduction": { + "description": "A preliminary section that typically introduces the scope or nature of the work.", + "isAbstract": false, + "superclassRoles": [ + "landmark" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB introduction [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-braillelabel", + "aria-brailleroledescription", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-description", + "aria-details", + { + "name": "aria-disabled", + "deprecatedInVersion": "1.2" + }, + "aria-dropeffect", + { + "name": "aria-errormessage", + "deprecatedInVersion": "1.2" + }, + "aria-flowto", + "aria-grabbed", + { + "name": "aria-haspopup", + "deprecatedInVersion": "1.2" + }, + "aria-hidden", + { + "name": "aria-invalid", + "deprecatedInVersion": "1.2" + }, + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-noteref": { + "description": "A reference to a footnote or endnote, typically appearing as a superscripted number or symbol in the main body of text.", + "isAbstract": false, + "superclassRoles": [ + "link" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB noteref [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-disabled", + "aria-expanded", + "aria-haspopup", + "aria-atomic", + "aria-braillelabel", + "aria-brailleroledescription", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-description", + "aria-details", + { + "name": "aria-disabled", + "deprecatedInVersion": "1.2" + }, + "aria-dropeffect", + { + "name": "aria-errormessage", + "deprecatedInVersion": "1.2" + }, + "aria-flowto", + "aria-grabbed", + { + "name": "aria-haspopup", + "deprecatedInVersion": "1.2" + }, + "aria-hidden", + { + "name": "aria-invalid", + "deprecatedInVersion": "1.2" + }, + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "contents", + "author" + ], + "isAccessibleNameRequired": true, + "hasPresentationalChildren": false + }, + "doc-notice": { + "description": "Notifies the user of consequences that might arise from an action or event. Examples include warnings, cautions and dangers.", + "isAbstract": false, + "superclassRoles": [ + "note" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB notice [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-braillelabel", + "aria-brailleroledescription", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-description", + "aria-details", + { + "name": "aria-disabled", + "deprecatedInVersion": "1.2" + }, + "aria-dropeffect", + { + "name": "aria-errormessage", + "deprecatedInVersion": "1.2" + }, + "aria-flowto", + "aria-grabbed", + { + "name": "aria-haspopup", + "deprecatedInVersion": "1.2" + }, + "aria-hidden", + { + "name": "aria-invalid", + "deprecatedInVersion": "1.2" + }, + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-pagebreak": { + "description": "A separator denoting the position before which a break occurs between two contiguous pages in a statically paginated version of the content.", + "isAbstract": false, + "superclassRoles": [ + "separator" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB pagebreak [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-valuenow", + "aria-disabled", + "aria-orientation", + "aria-valuemax", + "aria-valuemin", + "aria-valuetext", + "aria-atomic", + "aria-braillelabel", + "aria-brailleroledescription", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-description", + "aria-details", + { + "name": "aria-disabled", + "deprecatedInVersion": "1.2" + }, + "aria-dropeffect", + { + "name": "aria-errormessage", + "deprecatedInVersion": "1.2" + }, + "aria-flowto", + "aria-grabbed", + { + "name": "aria-haspopup", + "deprecatedInVersion": "1.2" + }, + "aria-hidden", + { + "name": "aria-invalid", + "deprecatedInVersion": "1.2" + }, + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription", + "aria-atomic", + "aria-braillelabel", + "aria-brailleroledescription", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-description", + "aria-details", + { + "name": "aria-disabled", + "deprecatedInVersion": "1.2" + }, + "aria-dropeffect", + { + "name": "aria-errormessage", + "deprecatedInVersion": "1.2" + }, + "aria-flowto", + "aria-grabbed", + { + "name": "aria-haspopup", + "deprecatedInVersion": "1.2" + }, + "aria-hidden", + { + "name": "aria-invalid", + "deprecatedInVersion": "1.2" + }, + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "contents", + "author" + ], + "isAccessibleNameRequired": true, + "hasPresentationalChildren": true + }, + "doc-pagelist": { + "description": "A navigational aid that provides a list of links to the page breaks in the content.", + "isAbstract": false, + "superclassRoles": [ + "navigation" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB page-list [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-braillelabel", + "aria-brailleroledescription", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-description", + "aria-details", + { + "name": "aria-disabled", + "deprecatedInVersion": "1.2" + }, + "aria-dropeffect", + { + "name": "aria-errormessage", + "deprecatedInVersion": "1.2" + }, + "aria-flowto", + "aria-grabbed", + { + "name": "aria-haspopup", + "deprecatedInVersion": "1.2" + }, + "aria-hidden", + { + "name": "aria-invalid", + "deprecatedInVersion": "1.2" + }, + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-pagefooter": { + "description": "A section of text appearing at the bottom of a page that provides context about the current work and location within it. The page footer is distinct from the body text and normallyfollows a repeating template that contains (possibly truncated) items such as the document title, current section, author name(s), and page number.", + "isAbstract": false, + "superclassRoles": [ + "section" + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-braillelabel", + "aria-brailleroledescription", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-description", + "aria-details", + { + "name": "aria-disabled", + "deprecatedInVersion": "1.2" + }, + "aria-dropeffect", + { + "name": "aria-errormessage", + "deprecatedInVersion": "1.2" + }, + "aria-flowto", + "aria-grabbed", + { + "name": "aria-haspopup", + "deprecatedInVersion": "1.2" + }, + "aria-hidden", + { + "name": "aria-invalid", + "deprecatedInVersion": "1.2" + }, + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "prohibited" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-pageheader": { + "description": "A section of text appearing at the top of a page that provides context about the current work and location within it. The page header is distinct from the body text and normally followsa repeating template that contains (possibly truncated) items such as the document title, current section, author name(s), and page number.", + "isAbstract": false, + "superclassRoles": [ + "section" + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-braillelabel", + "aria-brailleroledescription", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-description", + "aria-details", + { + "name": "aria-disabled", + "deprecatedInVersion": "1.2" + }, + "aria-dropeffect", + { + "name": "aria-errormessage", + "deprecatedInVersion": "1.2" + }, + "aria-flowto", + "aria-grabbed", + { + "name": "aria-haspopup", + "deprecatedInVersion": "1.2" + }, + "aria-hidden", + { + "name": "aria-invalid", + "deprecatedInVersion": "1.2" + }, + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "prohibited" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-part": { + "description": "A major structural division in a work that contains a set of related sections dealing with a particular subject, narrative arc, or similar encapsulated theme.", + "isAbstract": false, + "superclassRoles": [ + "landmark" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB part [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-braillelabel", + "aria-brailleroledescription", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-description", + "aria-details", + { + "name": "aria-disabled", + "deprecatedInVersion": "1.2" + }, + "aria-dropeffect", + { + "name": "aria-errormessage", + "deprecatedInVersion": "1.2" + }, + "aria-flowto", + "aria-grabbed", + { + "name": "aria-haspopup", + "deprecatedInVersion": "1.2" + }, + "aria-hidden", + { + "name": "aria-invalid", + "deprecatedInVersion": "1.2" + }, + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-preface": { + "description": "An introductory section that precedes the work, typically written by the author of the work.", + "isAbstract": false, + "superclassRoles": [ + "landmark" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB preface [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-braillelabel", + "aria-brailleroledescription", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-description", + "aria-details", + { + "name": "aria-disabled", + "deprecatedInVersion": "1.2" + }, + "aria-dropeffect", + { + "name": "aria-errormessage", + "deprecatedInVersion": "1.2" + }, + "aria-flowto", + "aria-grabbed", + { + "name": "aria-haspopup", + "deprecatedInVersion": "1.2" + }, + "aria-hidden", + { + "name": "aria-invalid", + "deprecatedInVersion": "1.2" + }, + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-prologue": { + "description": "An introductory section that sets the background to a work, typically part of the narrative.", + "isAbstract": false, + "superclassRoles": [ + "landmark" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB prologue [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-braillelabel", + "aria-brailleroledescription", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-description", + "aria-details", + { + "name": "aria-disabled", + "deprecatedInVersion": "1.2" + }, + "aria-dropeffect", + { + "name": "aria-errormessage", + "deprecatedInVersion": "1.2" + }, + "aria-flowto", + "aria-grabbed", + { + "name": "aria-haspopup", + "deprecatedInVersion": "1.2" + }, + "aria-hidden", + { + "name": "aria-invalid", + "deprecatedInVersion": "1.2" + }, + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-pullquote": { + "description": "A distinctively placed or highlighted quotation from the current content designed to draw attention to a topic or highlight a key point.", + "isAbstract": false, + "superclassRoles": [ + "section" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB pullquote [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-braillelabel", + "aria-brailleroledescription", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-description", + "aria-details", + { + "name": "aria-disabled", + "deprecatedInVersion": "1.2" + }, + "aria-dropeffect", + { + "name": "aria-errormessage", + "deprecatedInVersion": "1.2" + }, + "aria-flowto", + "aria-grabbed", + { + "name": "aria-haspopup", + "deprecatedInVersion": "1.2" + }, + "aria-hidden", + { + "name": "aria-invalid", + "deprecatedInVersion": "1.2" + }, + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-qna": { + "description": "A section of content structured as a series of questions and answers, such as an interview or list of frequently asked questions.", + "isAbstract": false, + "superclassRoles": [ + "section" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB qna [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-braillelabel", + "aria-brailleroledescription", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-description", + "aria-details", + { + "name": "aria-disabled", + "deprecatedInVersion": "1.2" + }, + "aria-dropeffect", + { + "name": "aria-errormessage", + "deprecatedInVersion": "1.2" + }, + "aria-flowto", + "aria-grabbed", + { + "name": "aria-haspopup", + "deprecatedInVersion": "1.2" + }, + "aria-hidden", + { + "name": "aria-invalid", + "deprecatedInVersion": "1.2" + }, + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-subtitle": { + "description": "An explanatory or alternate title for the work, or a section or component within it.", + "isAbstract": false, + "superclassRoles": [ + "sectionhead" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB subtitle [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-braillelabel", + "aria-brailleroledescription", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-description", + "aria-details", + { + "name": "aria-disabled", + "deprecatedInVersion": "1.2" + }, + "aria-dropeffect", + { + "name": "aria-errormessage", + "deprecatedInVersion": "1.2" + }, + "aria-flowto", + "aria-grabbed", + { + "name": "aria-haspopup", + "deprecatedInVersion": "1.2" + }, + "aria-hidden", + { + "name": "aria-invalid", + "deprecatedInVersion": "1.2" + }, + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "contents", + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-tip": { + "description": "Helpful information that clarifies some aspect of the content or assists in its comprehension.", + "isAbstract": false, + "superclassRoles": [ + "note" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB help [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-braillelabel", + "aria-brailleroledescription", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-description", + "aria-details", + { + "name": "aria-disabled", + "deprecatedInVersion": "1.2" + }, + "aria-dropeffect", + { + "name": "aria-errormessage", + "deprecatedInVersion": "1.2" + }, + "aria-flowto", + "aria-grabbed", + { + "name": "aria-haspopup", + "deprecatedInVersion": "1.2" + }, + "aria-hidden", + { + "name": "aria-invalid", + "deprecatedInVersion": "1.2" + }, + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "doc-toc": { + "description": "A navigational aid that provides an ordered list of links to the major sectional headings in the content. A table of contents may cover an entire work, or only a smaller section of it.", + "isAbstract": false, + "superclassRoles": [ + "navigation" + ], + "relatedConcepts": [ + { + "type": "text", + "name": "EPUB toc [EPUB-SSV]" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-braillelabel", + "aria-brailleroledescription", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-description", + "aria-details", + { + "name": "aria-disabled", + "deprecatedInVersion": "1.2" + }, + "aria-dropeffect", + { + "name": "aria-errormessage", + "deprecatedInVersion": "1.2" + }, + "aria-flowto", + "aria-grabbed", + { + "name": "aria-haspopup", + "deprecatedInVersion": "1.2" + }, + "aria-hidden", + { + "name": "aria-invalid", + "deprecatedInVersion": "1.2" + }, + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + } + }, + "attributes": {} +} diff --git a/packages/aria-data/generate-aria-data.js b/packages/aria-data/generate-aria-data.js index db33490f71dd..442c09111010 100644 --- a/packages/aria-data/generate-aria-data.js +++ b/packages/aria-data/generate-aria-data.js @@ -151,13 +151,13 @@ function parseAriaSpec(doc, { url, version }) { }; } -const DESCRIPTION_REGEX = /(?:\[Deprecated in ARIA ([\d.]+)\])?[ ]?(.+)/; +const DESCRIPTION_REGEX = /(?:\[Deprecated in ARIA ([\d.]+)\])?[ ]?(.+)/s; function parseDescription(node) { const text = node?.textContent; if (text != null) { const [_, deprecatedInVersion, description] = text.match(DESCRIPTION_REGEX); - return { deprecatedInVersion, description }; + return { deprecatedInVersion, description: description.trim().replace(/\n[ ]*/g, "") }; } return {}; } @@ -324,18 +324,19 @@ function textContents(nodeList) { } } -const DEFAULT_ARIA_SSPEC_VERSION = "1.2"; +const DEFAULT_ARIA_SSPEC = "wai-aria-1.2"; -const VERSION_REGEX = /^\d+(?:\.\d+)*$/; +const SPEC_REGEX = /^[a-z_-]+(\d+(?:\.\d+)*)$/; -async function run({ positionals: [version = DEFAULT_ARIA_SSPEC_VERSION] }) { - if (!VERSION_REGEX.test(version)) { +async function run({ positionals: [spec = DEFAULT_ARIA_SSPEC] }) { + if (!SPEC_REGEX.test(spec)) { console.error( - `"${version}" is not a valid version. default: "${DEFAULT_ARIA_SSPEC_VERSION}"`, + `"${spec}" is not a valid spec name. default: "${DEFAULT_ARIA_SSPEC}"`, ); process.exit(1); } - const url = `https://www.w3.org/TR/wai-aria-${version}/`; + let [_, version] = spec.match(SPEC_REGEX) + const url = `https://www.w3.org/TR/${spec}/`; const browser = new Browser({ settings: { errorCapture: BrowserErrorCaptureEnum.processLevel }, diff --git a/packages/aria-data/graphics-aria-1-0.json b/packages/aria-data/graphics-aria-1-0.json new file mode 100644 index 000000000000..df09ea1ef8ab --- /dev/null +++ b/packages/aria-data/graphics-aria-1-0.json @@ -0,0 +1,164 @@ +{ + "permalink": "https://www.w3.org/TR/2018/REC-graphics-aria-1.0-20181002/", + "url": "https://www.w3.org/TR/graphics-aria-1.0/", + "version": "1.0", + "roles": { + "graphics-document": { + "description": "A type of document in which the visual appearance or layout of content conveys meaning.", + "isAbstract": false, + "superclassRoles": [ + "document" + ], + "relatedConcepts": [ + { + "type": "role", + "name": "graphics-object", + "module": "aria" + }, + { + "type": "role", + "name": "img", + "module": "aria" + }, + { + "type": "role", + "name": "article", + "module": "aria" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-details", + "aria-disabled", + "aria-dropeffect", + "aria-errormessage", + "aria-expanded", + "aria-flowto", + "aria-grabbed", + "aria-haspopup", + "aria-hidden", + "aria-invalid", + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": true, + "hasPresentationalChildren": false + }, + "graphics-object": { + "description": "A section of a graphics-documentthat represents a distinct object or sub-componentwith semantic meaning. A graphical object may itself have nested sub-components.", + "isAbstract": false, + "superclassRoles": [ + "group" + ], + "relatedConcepts": [ + { + "type": "role", + "name": "graphics-document", + "module": "aria" + }, + { + "type": "role", + "name": "group", + "module": "aria" + }, + { + "type": "role", + "name": "img", + "module": "aria" + }, + { + "type": "role", + "name": "graphics-symbol", + "module": "aria" + } + ], + "inheritedAttributes": [ + "aria-activedescendant", + "aria-atomic", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-details", + "aria-disabled", + "aria-dropeffect", + "aria-errormessage", + "aria-expanded", + "aria-flowto", + "aria-grabbed", + "aria-haspopup", + "aria-hidden", + "aria-invalid", + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author", + "contents" + ], + "isAccessibleNameRequired": false, + "hasPresentationalChildren": false + }, + "graphics-symbol": { + "description": "A graphical object used to convey a simple meaning or category, where the meaning is more important than the particular visual appearance. It may be a component of a larger structured graphic such as a chart or map. The symbol itself is an atomic object; children are presentational.", + "isAbstract": false, + "superclassRoles": [ + "img" + ], + "relatedConcepts": [ + { + "type": "role", + "name": "symbol", + "module": "aria" + } + ], + "inheritedAttributes": [ + "aria-atomic", + "aria-busy", + "aria-controls", + "aria-current", + "aria-describedby", + "aria-details", + "aria-disabled", + "aria-dropeffect", + "aria-errormessage", + "aria-expanded", + "aria-flowto", + "aria-grabbed", + "aria-haspopup", + "aria-hidden", + "aria-invalid", + "aria-keyshortcuts", + "aria-label", + "aria-labelledby", + "aria-live", + "aria-owns", + "aria-relevant", + "aria-roledescription" + ], + "nameFrom": [ + "author" + ], + "isAccessibleNameRequired": true, + "hasPresentationalChildren": true + } + }, + "attributes": {} +} diff --git a/packages/aria-data/aria-data-1-1.json b/packages/aria-data/wai-aria-1-1.json similarity index 99% rename from packages/aria-data/aria-data-1-1.json rename to packages/aria-data/wai-aria-1-1.json index 437ece2a7231..be040bb871f8 100644 --- a/packages/aria-data/aria-data-1-1.json +++ b/packages/aria-data/wai-aria-1-1.json @@ -4174,7 +4174,7 @@ }, "aria-errormessage": { "type": "property", - "description": "Identifies the element that provides an error message for the object. See related aria-invalid and aria-describedby. ", + "description": "Identifies the element that provides an error message for the object. See related aria-invalid and aria-describedby.", "valueType": "ID reference" }, "aria-flowto": { diff --git a/packages/aria-data/aria-data-1-2.json b/packages/aria-data/wai-aria-1-2.json similarity index 100% rename from packages/aria-data/aria-data-1-2.json rename to packages/aria-data/wai-aria-1-2.json diff --git a/packages/aria-data/aria-data-1-3-draft.json b/packages/aria-data/wai-aria-1-3.json similarity index 100% rename from packages/aria-data/aria-data-1-3-draft.json rename to packages/aria-data/wai-aria-1-3.json