From 3af8fd8a02787bed26efad80a91b8541390b8e22 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 13 Sep 2014 20:17:19 +0100 Subject: Don't error when missing :attrs/:class --- src/microformats/parser.clj | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/microformats/parser.clj b/src/microformats/parser.clj index 558f784..882759a 100644 --- a/src/microformats/parser.clj +++ b/src/microformats/parser.clj @@ -27,10 +27,10 @@ (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" -- cgit 1.4.1