Frontmatter
| id | 6663 |
| title | main.DomEvents: getEventData() => include aria attributes |
| state | Closed |
| labels | enhancement |
| assignees | [] |
| createdAt | Apr 17, 2025, 12:14 AM |
| updatedAt | Apr 17, 2025, 12:55 PM |
| githubUrl | https://github.com/neomjs/neo/issues/6663 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Apr 17, 2025, 12:55 PM |
while there is sadly no
ariaSetequivalent to thedataSet, it can be useful to include these attributes to check for e.g.aria-rowindexinside 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; }