Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix crash in hasSelection #187

Merged
merged 1 commit into from
Jul 30, 2024
Merged

fix crash in hasSelection #187

merged 1 commit into from
Jul 30, 2024

Conversation

mbostock
Copy link
Member

Fixes some bogus code in #41 that perhaps never worked — it was dependent on nonstandard extensions to the Node interface that appear to be specific to Chrome devtools. So instead we use the standard methods (which probably behave slightly differently with respect to shadow roots, but I don’t think this matters to us — and at any rate if it’s better than crashing).

@mbostock mbostock requested a review from Fil July 30, 2024 17:09
@mbostock
Copy link
Member Author

Merging optimistically but review welcome.

@mbostock mbostock merged commit 45e4722 into main Jul 30, 2024
3 checks passed
@mbostock mbostock deleted the mbostock/fix-selection-crash branch July 30, 2024 17:16
@Fil
Copy link

Fil commented Aug 5, 2024

I haven't been able to replicate the crash. But reading the description this seems correct.

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.

2 participants