Element:ariaActiveDescendantElement 属性
Baseline
2025
Newly available
Since April 2025, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
ElementInternals 接口的 ariaActiveDescendantElement 属性用于表示当焦点位于 composite 微件、combobox、textbox、group 或 application 上时的当前活动元素。
aria-activedescendant 主题包含有关该属性和属性应如何使用的更多信息。
值
一个表示活动后代的 HTMLElement 子类,如果没有活动后代,则为 null。
描述
该属性是 aria-activedescendant 属性的灵活替代方案。与 aria-activedescendant 不同,分配给该属性的元素不必具有 id 属性。
该属性反映元素的 aria-activedescendant 属性(如果已定义),但仅适用于匹配有效范围内的元素的引用 id 值。如果设置该属性,则相应的属性会被清除。有关反射元素引用和范围的更多信息,请参见反射属性指南中的反射元素引用。
规范
| Specification |
|---|
| Accessible Rich Internet Applications (WAI-ARIA)> # dom-ariamixin-ariaactivedescendantelement> |
浏览器兼容性
Loading…