MCPcopy Create free account
hub / github.com/ampproject/amphtml / removeElement

Function removeElement

third_party/subscriptions-project/swg.js:3721–3725  ·  view source on GitHub ↗

* Removes the element. * @param {!Element} element

(element)

Source from the content-addressed store, hash-verified

3719 * @param {!Element} element
3720 */
3721function removeElement(element) {
3722 if (element.parentElement) {
3723 element.parentElement.removeChild(element);
3724 }
3725}
3726
3727/**
3728 * Removes all children from the parent element.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected