question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ParentNode.replaceChildren is excluded, but it's not clear to me why

See original GitHub issue

It appears that the method replaceChildren on the interface ParentNode has explicitly been excluded. It’s not clear to me why this is; as far as I can tell it’s stable and present in most browsers. This change was introduced in a seemingly unrelated pull-request, which doesn’t provide any hints as to why this was done. Is there a reason for this? Was this an accident?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:9
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

7reactions
saschanazcommented, Mar 2, 2021

It wasn’t widely available back in 2020. We can now remove the exclusion.

0reactions
github-actions[bot]commented, Sep 14, 2021

Closing because @saschanaz is one of the code-owners of this repository.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Element.replaceChildren() - Web APIs - MDN Web Docs
The Element.replaceChildren() method replaces the existing children of a Node with a specified new set of children.
Read more >
DOM replaceChild not replacing all specified elements
DOM replaceChild not replacing all specified elements ... I cannot for the life of me figure out why all of the region tags...
Read more >
ParentNode.replaceChildren() Method - Chrome Platform Status
Loop through node's children and call node.removeChild() on each one. Then call node.append(nodes). This replaceChildren API enables web ...
Read more >
1. Getting Started - Greasemonkey Hacks [Book] - O'Reilly
The first thing you need to do to get started with Greasemonkey is install it. Open Firefox and go to http://greasemonkey.mozdev.org.
Read more >
DrexelMed Annotated Video - WebCampus - Drexel University
removeChild(Y)}else{setTimeout(arguments.callee,10)}})()}else{Y.parentNode.replaceChild(g(Y),Y)}}function g(ab){var aa=C("div");if(M.win&&M.ie){aa.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found