Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing replaceWith #46

Open
schneiderfelipe opened this issue May 29, 2021 · 0 comments
Open

Missing replaceWith #46

schneiderfelipe opened this issue May 29, 2021 · 0 comments
Labels
type: enhancement A new feature or addition.

Comments

@schneiderfelipe
Copy link

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);
    };
  };
};
@schneiderfelipe schneiderfelipe added the type: enhancement A new feature or addition. label May 29, 2021
sigma-andex pushed a commit to working-group-purescript-es/purescript-web-dom that referenced this issue Apr 14, 2022
* Remove Unit argument from create functions.

* Remove unused Unit import

Co-authored-by: JordanMartinez <jordanalex.martinez@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A new feature or addition.
Projects
None yet
Development

No branches or pull requests

1 participant