Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public replaceWith(html) {
if (html instanceof Element) {
replaceElement(this._dom, html._dom)
return
}
replaceElement(this._dom, parseDOMSync(html)[0])
}
public replaceWith(html) {
if (html instanceof Element) {
replaceElement(this._dom, html._dom)
return
}
replaceElement(this._dom, parseDOMSync(html)[0])
}