This feature has been deprecated. Use Element#replaceWith() instead.
Load unpoly-migrate.js
to polyfill deprecated features.
Replaces the given old element with the given new element.
The old element will be removed from the DOM tree.
Tip Your coding agent can search these docs locally with the Unpoly agent skill