Skip to content

Conversation

@Nxooah
Copy link

@Nxooah Nxooah commented Oct 9, 2025

  • Fixed HTMLDetailsElement.dispatchEvent() to handle clicks on descendant elements of summary
  • Now uses Element.closest() to find the nearest summary element in the DOM hierarchy
  • Added comprehensive tests to verify the fix works for nested elements
  • Resolves issue where clicking on child elements (like spans) inside summary didn't toggle details

@Nxooah Nxooah requested a review from capricorn86 as a code owner October 9, 2025 16:53
…nt handler

- Fixed HTMLDetailsElement.dispatchEvent() to handle clicks on descendant elements of summary
- Now uses Element.closest() to find the nearest summary element in the DOM hierarchy
- Added comprehensive tests to verify the fix works for nested elements
- Resolves issue where clicking on child elements (like spans) inside summary didn't toggle details
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.

1 participant