Element: ariaActiveDescendantElement 属性
ElementInternals 接口的 ariaActiveDescendantElement 属性表示当焦点位于 composite 小部件、combobox、textbox、group 或 application 上时,当前活动的元素。
有关如何使用该属性和特性的更多信息,请参阅 aria-activedescendant 主题。
值
HTMLElement 的一个子类,表示活动后代,如果没有活动后代,则为 null。
描述
该属性是使用 aria-activedescendant 属性的灵活替代方案。与 aria-activedescendant 不同,赋给此属性的元素不必具有 id 属性。
当定义了 aria-activedescendant 属性时,该属性会反映该属性,但仅限于与有效的范围内元素匹配的引用 id 值。如果设置了该属性,则相应的属性将被清除。有关反映的元素引用和范围的更多信息,请参阅反映的属性指南中的 反映的元素引用。
规范
| 规范 |
|---|
| 无障碍富互联网应用程序 (WAI-ARIA) # dom-ariamixin-ariaactivedescendantelement |
浏览器兼容性
加载中…
另见
aria-activedescendant属性Element.ariaActiveDescendantElement- Attribute reflection 指南中的Reflected element references。