LearnNewsExamplesServices
Frontmatter
id6663
titlemain.DomEvents: getEventData() => include aria attributes
stateClosed
labels
enhancement
assignees[]
createdAtApr 17, 2025, 12:14 AM
updatedAtApr 17, 2025, 12:55 PM
githubUrlhttps://github.com/neomjs/neo/issues/6663
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtApr 17, 2025, 12:55 PM

main.DomEvents: getEventData() => include aria attributes

Closed v9.0.0 enhancement
tobiu
tobiu commented on Apr 17, 2025, 12:14 AM

while there is sadly no ariaSet equivalent to the dataSet, it can be useful to include these attributes to check for e.g. aria-rowindex inside a buffered grid click event.

We would need something like:

function getAllAriaAttributes(node) {
  const ariaAttributes = {};
  const attributes = node.attributes;

  for (let i = 0; i < attributes.length; i++) {
    const attribute = attributes[i];
    if (attribute.name.startsWith('aria-')) {
      ariaAttributes[attribute.name] = attribute.value;
    }
  }

  return ariaAttributes;
}
tobiu added the enhancement label on Apr 17, 2025, 12:14 AM
tobiu cross-referenced by #6664 on Apr 17, 2025, 12:29 AM
tobiu referenced in commit e669a05 - "main.DomEvents: getEventData() => include aria attributes #6663" on Apr 17, 2025, 12:55 PM
tobiu closed this issue on Apr 17, 2025, 12:55 PM