Skip to content
This repository was archived by the owner on Oct 4, 2020. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/DOM/Node/Node.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ cases.
#### `setTextContent`

``` purescript
setTextContent :: forall eff. Node -> Eff (dom :: DOM | eff) Unit
setTextContent :: forall eff. String -> Node -> Eff (dom :: DOM | eff) Unit
```

If the node type is document fragment, element, text, processing
Expand Down
2 changes: 1 addition & 1 deletion src/DOM/Node/Node.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ exports.textContent = getEffProp("textContent");
exports.setTextContent = function (value) {
return function (node) {
return function () {
node.nodeValue = value;
node.textContent = value;
return {};
};
};
Expand Down
2 changes: 1 addition & 1 deletion src/DOM/Node/Node.purs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ foreign import textContent :: forall eff. Node -> Eff (dom :: DOM | eff) String
-- | If the node type is document fragment, element, text, processing
-- | instruction, or comment this allows the node's data to be changed, or has
-- | no effect in all other cases.
foreign import setTextContent :: forall eff. Node -> Eff (dom :: DOM | eff) Unit
foreign import setTextContent :: forall eff. String -> Node -> Eff (dom :: DOM | eff) Unit

-- | Removes empty text nodes and then combines any remaining text nodes that
-- | are contiguous.
Expand Down