Skip to content

Conversation

@skoch13
Copy link

@skoch13 skoch13 commented Nov 13, 2025

Fixes #1952

Selection API methods were rejecting Document nodes as boundary points because document.ownerDocument is null. The validation now accepts nodes that are either the document itself or have a matching ownerDocument.

Fixed methods:

  • collapse()
  • extend()
  • selectAllChildren()
  • setBaseAndExtent()

Tests: Added coverage for all four methods with Document nodes.

@skoch13 skoch13 requested a review from capricorn86 as a code owner November 13, 2025 12:38
@skoch13 skoch13 changed the title Fix Document nodes rejected as boundary points in Selection API fix: [#1952] Fix Document nodes rejected as boundary points in Selection API Nov 13, 2025
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.

setBaseAndExtent rejects Document nodes as valid boundary points

1 participant