all repos — archive/microformats @ e023b6df338859d4f62f77e68f3456319304b1ff

Incomplete Clojure microformats library

Refactor selectors using set = union syntax

Alan Pearce
commit

e023b6df338859d4f62f77e68f3456319304b1ff

parent

d311826df5bf8c232e511cf79d382000f36f4db1

1 file changed, 4 insertions(+), 4 deletions(-)

jump to
M src/microformats/parser.cljsrc/microformats/parser.clj
@@ -123,10 +123,10 @@
(defn parse-children "Parse element children for microformats" [element] - (let [el (first (html/select element [(html/union [(html/attr-starts :class "p-") - (html/attr-starts :class "u-") - (html/attr-starts :class "dt-") - (html/attr-starts :class "e-")])]))] + (let [el (first (html/select element {(html/attr-starts :class "p-") + (html/attr-starts :class "u-") + (html/attr-starts :class "dt-") + (html/attr-starts :class "e-")}))] (hash-map :properties (merge ((juxt parse-p parse-u parse-dt parse-e)))))) (defn parse-h