Skip to content

fix: change Node#parentElement to allow non-HTMLElement parents#77

Merged
uhyo merged 2 commits intomasterfrom
fix/issue-74
Sep 7, 2025
Merged

fix: change Node#parentElement to allow non-HTMLElement parents#77
uhyo merged 2 commits intomasterfrom
fix/issue-74

Conversation

@uhyo
Copy link
Copy Markdown
Owner

@uhyo uhyo commented Sep 7, 2025

closes #74

uhyo and others added 2 commits September 7, 2025 18:54
- Change Node.parentElement type from HTMLElement | null to Element | null
- This fixes compatibility with SVG elements and other non-HTML elements
- Add comprehensive tests to verify the fix works correctly
- Resolves issue #74

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@uhyo uhyo merged commit 3596dd1 into master Sep 7, 2025
1 check passed
@uhyo uhyo deleted the fix/issue-74 branch September 7, 2025 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Node.parentElement should be Element, not HTMLElement

1 participant