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
9 changes: 6 additions & 3 deletions src/DOM/Node/NonDocumentTypeChildNode.purs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import Data.Nullable (Nullable())
import DOM
import DOM.Node.Types

-- | The first element within node's descendants with a matching ID, or null if
-- | no such element exists.
foreign import getElementById :: forall eff. ElementId -> NonDocumentTypeChildNode -> Eff (dom :: DOM | eff) (Nullable Element)
-- | The previous sibling that is an element, or null if no such element exists.
foreign import previousElementSibling :: forall eff. NonDocumentTypeChildNode -> Eff (dom :: DOM | eff) (Nullable Element)

-- | The next sibling that is an element, or null if no such element exists.
foreign import nextElementSibling :: forall eff. NonDocumentTypeChildNode -> Eff (dom :: DOM | eff) (Nullable Element)

8 changes: 3 additions & 5 deletions src/DOM/Node/NonElementParentNode.purs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import Data.Nullable (Nullable())
import DOM
import DOM.Node.Types

-- | The previous sibling that is an element, or null if no such element exists.
foreign import previousElementSibling :: forall eff. NonElementParentNode -> Eff (dom :: DOM | eff) (Nullable Element)

-- | The next sibling that is an element, or null if no such element exists.
foreign import nextElementSibling :: forall eff. NonElementParentNode -> Eff (dom :: DOM | eff) (Nullable Element)
-- | The first element within node's descendants with a matching ID, or null if
-- | no such element exists.
foreign import getElementById :: forall eff. ElementId -> NonElementParentNode -> Eff (dom :: DOM | eff) (Nullable Element)