Open
Description
It seems that replaceWith
is missing (spec & MDN).
A possible implementation would be
-- | Uses the first node as a replacement for the second node.
foreign import replaceWith :: Node -> Node -> Effect Unit
exports.replaceWith = function (newNode) {
return function (oldNode) {
return function () {
oldNode.replaceWith(newNode);
};
};
};