Addition: update figure role allowances by scottaohara · Pull Request #415 · w3c/html-aria (original) (raw)

closes #412

As discussed in w3c/dpub-aria#42 (comment), doc-example is a dpub variant of the figure role. This role being the same as figure but with the opportunity of being exposed as an "example" for its role description, needs to be an allowed role for the figure element.

create test case

Expected results:
doc-example is an allowed role for <figure role=doc-example>...<figcaption>...</figcaption>
figure results in a warning as unnecessary for <figure role=figure>...<figcaption>...</figcaption>
no other roles are allowed if a figcaption is a child of a figure element.


Preview | Diff