all repos — archive/microformats @ 3af8fd8a02787bed26efad80a91b8541390b8e22

Incomplete Clojure microformats library

Don't error when missing :attrs/:class

Alan Pearce
commit

3af8fd8a02787bed26efad80a91b8541390b8e22

parent

023b48cfad96c261f4abfa64c1092bdb39fba1c1

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

jump to
M src/microformats/parser.cljsrc/microformats/parser.clj
@@ -27,10 +27,10 @@ (mf-names-from-class prefix)))
(defn element-to-classes "Get list of classes from an element" - [el] (-> el - :attrs - :class - split-classes)) + [el] (some-> el + :attrs + :class + split-classes)) (defn get-p-value "Get the p-x property value of an element"