11/11/2022 0 Comments Aria meaning![]() ![]() Consequently, using role=”presentation” or role=”none” on an HTML img is equivalent to using aria-hidden=”true”. In HTML, the img element is treated as a single entity regardless of the type of image file. Also, when an explicit or inherited role of presentation is applied to a host language element which has required children as defined by the host language specification, in addition to the element with the explicit role of presentation, the user agent MUST apply an inherited role of presentation to any required children that do not have an explicit role defined. When an explicit or inherited role of presentation is applied to an element with the implicit semantic of a WAI-ARIA role that has required owned elements, in addition to the element with the explicit role of presentation, the user agent MUST apply an inherited role of presentation to any owned elements that do not have an explicit role defined. The descendant elements that complete the semantics of an element are described in WAI-ARIA as required owned elements. Similarly, lists require list item children. ![]() For example, in HTML, table elements (matching the grid role) require tr descendants (the row role), which in turn require th or td children (the gridcell, columnheader, rowheader roles). Some elements are only complete when additional descendant elements are provided. The presentation role is used on an element that has implicit native semantics, meaning that there is a default accessibility API role for the element. ![]() Thus, the presentation role causes a given element to be treated as having no role or to be removed from the accessibility tree, but does not cause the content contained within the element to be removed from the accessibility tree. However, the user agent MUST expose content and descendant elements that do not have an explicit or inherited role of presentation.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |