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

Use node.remove() instead of parent.removeChild(node) #1036

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

skanne
Copy link
Contributor

@skanne skanne commented Feb 28, 2021

Hi Jorge,

not sure if you still want to support olden and not-at-all-golden Internet Explorer. If you're ditching it, then we could as well inch ourselves closer to more modern JS.

Here I am suggesting replacing the pattern parent.removeChild(node) with the simpler node.remove(). According to CanIUse it is safe to assume that by now this method is supported by all non-IE-browsers out there.

Benefit: We can shave off a few more bytes.

Regards,
Sven

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants