chore(controller): add @edit mark

This commit is contained in:
Simon
2026-04-02 17:38:02 +08:00
parent 3efef0ec42
commit bde630f55d

View File

@@ -18,6 +18,7 @@
* @edit improve `sampleRect`, filter out rects with 0 area * @edit improve `sampleRect`, filter out rects with 0 area
* @edit exclude aria-hidden elements * @edit exclude aria-hidden elements
* @edit make sure attributes exist for interactive candidates. * @edit make sure attributes exist for interactive candidates.
* @edit fix "aria-*" attributes check
*/ */
export default ( export default (
@@ -1143,6 +1144,8 @@ export default (
* @param {HTMLElement} element - The element to check. * @param {HTMLElement} element - The element to check.
* @returns {boolean} Whether the element is an interactive candidate. * @returns {boolean} Whether the element is an interactive candidate.
*/ */
// @edit fix "aria-*" attributes check
const INTERACTIVE_ARIA_ATTRS = [ const INTERACTIVE_ARIA_ATTRS = [
'aria-expanded', 'aria-expanded',
'aria-checked', 'aria-checked',