(make-descendants-explicit path)
Walks a path and returns pairs of [descendant element] where descendant is
either :descendant
or :child
, describing the desired relationship to the
previous path element. descendant
will be nil
for the first element. :>
creates a :child
relationship between two elements, while elements that
don't have an explicit relationship (e.g. [:div :a]
) will have a
:descendant
interposed between them.
Walks a path and returns pairs of [descendant element] where descendant is either `:descendant` or `:child`, describing the desired relationship to the previous path element. `descendant` will be `nil` for the first element. `:>` creates a `:child` relationship between two elements, while elements that don't have an explicit relationship (e.g. `[:div :a]`) will have a `:descendant` interposed between them.
(parse-selector selector)
Breaks a CSS selector element into tag matcher, class matchers, id matcher, and attribute matchers.
Breaks a CSS selector element into tag matcher, class matchers, id matcher, and attribute matchers.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close