Namespaces

 
1.0.0-SNAPSHOT permalink Arrow_down_16x16
  • (attr-has attr & values)
Selector predicate, tests if the specified whitespace-seperated attribute contains the specified values. See CSS ~=

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source net/cgrand/enlive_html.clj:268 top

(defn attr-has
 "Selector predicate, tests if the specified whitespace-seperated attribute contains the specified values. See CSS ~="
 [attr & values]
  (pred #(when-let [v (attr-values % attr)] (every? v values))))
Vars in net.cgrand.enlive-html/attr-has: defn every? when-let
Used in 0 other vars

Comments top

No comments for attr-has. Log in to add a comment.