doc-example has the superclass section, but it seems to make more sense that it inherit directly from figure, as examples are a specialized type of figure. It also removes the problematic relationship of the figcaption element when the figure element's role is overridden.
doc-example
has the superclasssection
, but it seems to make more sense that it inherit directly fromfigure
, as examples are a specialized type of figure. It also removes the problematic relationship of thefigcaption
element when thefigure
element's role is overridden.See also https://github.com/w3c/html-aria/issues/99