Fix errors in parse-children
1 file changed, 5 insertions(+), 5 deletions(-)
jump to
M src/microformats/parser.clj → src/microformats/parser.clj
@@ -130,11 +130,11 @@ (defn parse-children "Parse element children for microformats" [element] - (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)))))) + (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-")])]))] + (hash-map :properties (apply merge ((juxt parse-p parse-u parse-dt parse-e) el))))) (defn parse-h "Parse h-* classes within a HTML document."