(target, value)
| 470 | } |
| 471 | |
| 472 | replaceInDom(target, value) { |
| 473 | this.implicitLoop(target, (elt) => { |
| 474 | var parent = elt.parentElement; |
| 475 | if (value instanceof Node) { |
| 476 | elt.replaceWith(value.cloneNode(true)); |
| 477 | } else { |
| 478 | elt.replaceWith(this.convertValue(value, "Fragment")); |
| 479 | } |
| 480 | if (parent) this.processNode(parent); |
| 481 | }); |
| 482 | } |
| 483 | |
| 484 | /** |
| 485 | * Check if a method call is known to mutate its receiver, and notify if so. |
no test coverage detected