File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 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");
4040
4141exports . _nextSibling = getEffProp ( "nextSibling" ) ;
4242
43- exports . nodeValue = getEffProp ( "nodeValue" ) ;
43+ exports . _nodeValue = getEffProp ( "nodeValue" ) ;
4444
4545exports . setNodeValue = function ( value ) {
4646 return function ( node ) {
Original file line number Diff line number Diff line change @@ -121,9 +121,12 @@ nextSibling = map toMaybe <<< _nextSibling
121121
122122foreign import _nextSibling :: Node -> Effect (Nullable Node )
123123
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 )
127130
128131-- | If the node type is text, comment, or processing instruction this allows
129132-- | 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