about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorAlan Pearce2014-09-13 20:17:19 +0100
committerAlan Pearce2014-09-13 20:20:01 +0100
commit3af8fd8a02787bed26efad80a91b8541390b8e22 (patch)
tree808bdedb3f1e23704e12368c71bf0803bad28c99 /src
parent023b48cfad96c261f4abfa64c1092bdb39fba1c1 (diff)
downloadmicroformats-3af8fd8a02787bed26efad80a91b8541390b8e22.tar.lz
microformats-3af8fd8a02787bed26efad80a91b8541390b8e22.tar.zst
microformats-3af8fd8a02787bed26efad80a91b8541390b8e22.zip
Don't error when missing :attrs/:class
Diffstat (limited to 'src')
-rw-r--r--src/microformats/parser.clj8
1 files changed, 4 insertions, 4 deletions
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"