Skip to content

Conversation

mbostock
Copy link
Member

@mbostock mbostock commented Jun 3, 2021

Fixes #154.

Screen Shot 2021-06-03 at 2 41 30 PM

@mbostock mbostock requested a review from tophtucker June 3, 2021 21:39
Copy link

@tophtucker tophtucker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice! so this fixes it because chart.__proto__ instanceof Element is true, but chart.__proto__ instanceof chart.__proto__.constructor is false, so isnode is false where previously the conditional was true? so it now inspects the prototype instead of trying to render it.

tried but couldnt quickly figure out how to test locally but i trust you 👍

@mbostock mbostock merged commit 28b4eb6 into main Sep 1, 2021
@mbostock mbostock deleted the mbostock/fix-parentNode-error branch September 1, 2021 03:52
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.

Inspector hangs when getting prototype of DOM node

2 participants