Open SamGerber-zz opened 7 years ago
nope:
queryInNode : Selector -> ElmHtml msg -> List (ElmHtml msg)
queryInNode =
queryInNodeHelp Nothing
{-| Query an ElmHtml node using a selector, considering both the node itself
as well as all of its descendants.
-}
queryChildren : Selector -> ElmHtml msg -> List (ElmHtml msg)
queryChildren =
queryInNodeHelp (Just 1)
queryInNode
queries all sub nodes and queryChildren
queries only one level.
directChildren
, in other words.
https://github.com/eeue56/elm-html-query/blob/6dbe1bca11627ade6cffe2f06611294c3ea1de66/src/ElmHtml/Query.elm#L114-L117
https://github.com/eeue56/elm-html-query/blob/6dbe1bca11627ade6cffe2f06611294c3ea1de66/src/ElmHtml/Query.elm#L122-L125
It seems like queryInNode descends indefinitely while queryChildren only descends one level?