File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ exports._previousSibling = getEffProp("previousSibling");
40
40
41
41
exports . _nextSibling = getEffProp ( "nextSibling" ) ;
42
42
43
- exports . nodeValue = getEffProp ( "nodeValue" ) ;
43
+ exports . _nodeValue = getEffProp ( "nodeValue" ) ;
44
44
45
45
exports . setNodeValue = function ( value ) {
46
46
return function ( node ) {
Original file line number Diff line number Diff line change @@ -121,9 +121,12 @@ nextSibling = map toMaybe <<< _nextSibling
121
121
122
122
foreign import _nextSibling :: Node -> Effect (Nullable Node )
123
123
124
- -- | If the node type is text, comment, or processing instruction this is the
125
- -- | node's data, or null in all other cases.
126
- foreign import nodeValue :: Node -> Effect String
124
+ -- | If the node type is text, comment, or processing instruction this is
125
+ -- | `Just` the node's data, or `Nothing` in all other cases.
126
+ nodeValue :: Node -> Effect (Maybe String )
127
+ nodeValue = map toMaybe <<< _nodeValue
128
+
129
+ foreign import _nodeValue :: Node -> Effect (Nullable String )
127
130
128
131
-- | If the node type is text, comment, or processing instruction this allows
129
132
-- | the node's data to be changed, or has no effect in all other cases.
You can’t perform that action at this time.
0 commit comments