Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
setTimeout(() => {
let subDiv1 = document.createElement("div");
let subDiv2 = document.createElement("div");
div.appendChild(subDiv1);
div.appendChild(subDiv2);
subDiv1.innerText = "I'm a sub div";
subDiv1.style.fontWeight = "bold";
div.removeChild(subDiv2);
}, 1000);
...
observer.observe(div, {
attributes: true,
attributeOldValue: true,
subtree: true,
characterData: true,
characterDataOldValue: true,
childList: true
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.