-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Labels
type: enhancementA new feature or addition.A new feature or addition.
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 Unitexports.replaceWith = function (newNode) {
return function (oldNode) {
return function () {
oldNode.replaceWith(newNode);
};
};
};Metadata
Metadata
Assignees
Labels
type: enhancementA new feature or addition.A new feature or addition.