Element:ariaActiveDescendantElement 属性
>ElementInternals 接口的 ariaActiveDescendantElement 属性用于表示当焦点位于 composite 微件、combobox、textbox、group 或 application 上时的当前活动元素。
aria-activedescendant 主题包含有关该属性和属性应如何使用的更多信息。
值
一个表示活动后代的 HTMLElement 子类,如果没有活动后代,则为 null。
描述
该属性是 aria-activedescendant 属性的灵活替代方案。与 aria-activedescendant 不同,分配给该属性的元素不必具有 id 属性。
该属性反映元素的 aria-activedescendant 属性(如果已定义),但仅适用于匹配有效范围内的元素的引用 id 值。如果设置该属性,则相应的属性会被清除。有关反射元素引用和范围的更多信息,请参见反射属性指南中的反射元素引用。
规范
| 规范 |
|---|
| Accessible Rich Internet Applications (WAI-ARIA)> # dom-ariamixin-ariaactivedescendantelement> |