Message from JavaScript discussions

October 2017

— Been digging around in the C++ source for webkit through Chromium's nice source code search tool... https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/dom/ContainerNode.cpp?sq=package:chromium&dr=CSs&l=810

Message permanent page

— 

Here's the code btw, it isn't actually checking whether or not it gets a DocumentFragment, it is literally just returning the first parameter it is given blindly. I somehow guessed this was the case before I saw the code, too. LOL

— 

if (!CollectChildrenAndRemoveFromOldParent(*new_child, targets, exception_state))
return new_child;

— Reproducer

— Background is slideshow. For example, click create account which changes only the form, background remains the way. How it?

Message permanent page

— Hi, good to know

— The spec says it inserts the children of the fragment, and that's what they do.

— It also says those functions return the inserted nodes.

— Check mdn, I updated the docs

— Https://developer.mozilla.org/en-US/docs/Web/API/Node/appendChild

— Https://developer.mozilla.org/en-US/docs/Web/API/Node/insertBefore

— DOM Level 3 Core