Skip to content

Conversation

traxys
Copy link
Contributor

@traxys traxys commented Mar 19, 2023

Replacing a node ends up with the following error: Node.replaceChild: Child to be replaced is not a child of this node

It seems that Node.replaceChild is not recommended, and instead Element.replaceWith should be preferred. Using it avoids the panic.

Replacing a node ends up with the following error:
Node.replaceChild: Child to be replaced is not a child of this node

It seems that Node.replaceChild is not recommended, and instead
Element.replaceWith should be preferred. Using it avoids the panic.
@hecrj hecrj added bug Something isn't working shell labels Mar 20, 2023
@hecrj hecrj added this to the 0.9.0 milestone Mar 20, 2023
@hecrj hecrj added the web label Mar 20, 2023
Copy link
Member

@hecrj hecrj left a comment

Choose a reason for hiding this comment

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

Good catch! Thanks.

@hecrj hecrj merged commit be36c3f into iced-rs:master Mar 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working shell web
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants