Frontmatter
| id | 8286 |
| title | Enhance DomAccess.getElement to support window and document targets |
| state | Closed |
| labels | enhancementaicore |
| assignees | tobiu |
| createdAt | Jan 2, 2026, 11:50 AM |
| updatedAt | Jan 2, 2026, 12:05 PM |
| githubUrl | https://github.com/neomjs/neo/issues/8286 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | 8169 |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Jan 2, 2026, 12:04 PM |
Context: The
DomAccess.getElement()method currently supports retrieving elements by ID or data attribute. For advanced event simulation (Neural Link), we need to dispatch events towindowanddocumentas well.Proposed Change: Enhance
src/main/DomAccess.mjsgetElement(id)to support reserved keywords:'window'-> returnsglobalThis(window)'document'-> returnsdocument'document.body'-> returnsdocument.bodyBenefit: Provides a single source of truth for DOM node resolution across the framework, avoiding duplicate logic in addons.