Skip to content

fix: enable element selection inside same-origin iframes#81

Open
liuxiaopai-ai wants to merge 1 commit intobenjitaylor:mainfrom
liuxiaopai-ai:fix/iframe-element-selection
Open

fix: enable element selection inside same-origin iframes#81
liuxiaopai-ai wants to merge 1 commit intobenjitaylor:mainfrom
liuxiaopai-ai:fix/iframe-element-selection

Conversation

@liuxiaopai-ai
Copy link

Fixes #71.

Summary

  • Extend element hit-testing to traverse into same-origin iframes (while safely ignoring cross-origin frames).
  • Expand drag-selection querying to include same-origin iframe documents.
  • Keep behavior unchanged for cross-origin iframes (no access attempted beyond try/catch).

Notes

This change only supports same-origin iframes because browser security prevents accessing cross-origin iframe DOM.

@vercel
Copy link

vercel bot commented Feb 7, 2026

Someone is attempting to deploy a commit to the Benji Taylor's Projects Team on Vercel.

A member of the Team first needs to authorize it.

@benjitaylor benjitaylor requested a review from tofuness February 12, 2026 18:34
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.

Elements within iframe area on the page cannot be selected

1 participant