(child, ref)
| 54 | return child; |
| 55 | } |
| 56 | insertBefore(child, ref) { |
| 57 | child.remove(); |
| 58 | child.parentNode = this; |
| 59 | !ref ? this.childNodes.push(child) : splice(this.childNodes, ref, child); |
| 60 | return child; |
| 61 | } |
| 62 | replaceChild(child, ref) { |
| 63 | if (ref.parentNode===this) { |
| 64 | this.insertBefore(child, ref); |
no test coverage detected