Skip to content

Add "nodeName" to protected globals#207

Closed
prichey wants to merge 1 commit intomainfrom
prichey-patch-1
Closed

Add "nodeName" to protected globals#207
prichey wants to merge 1 commit intomainfrom
prichey-patch-1

Conversation

@prichey
Copy link

@prichey prichey commented Mar 1, 2023

React will throw if any DOM element gets an ID of "nodeName". We automatically assign any cell an ID with its name, which creates the potential for client errors if a nodeName cell is created.

Screen Shot 2023-03-01 at 9 48 01 AM

@mbostock
Copy link
Member

mbostock commented Mar 1, 2023

I don’t think we should do this; we should instead fix our code to avoid creating the global.

@prichey prichey closed this Mar 1, 2023
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