about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/microformats/parser.clj3
-rw-r--r--test/microformats/parser_expectations.clj3
2 files changed, 5 insertions, 1 deletions
diff --git a/src/microformats/parser.clj b/src/microformats/parser.clj
index 27c1388..8d5bb10 100644
--- a/src/microformats/parser.clj
+++ b/src/microformats/parser.clj
@@ -135,7 +135,8 @@
                   :del  (-> el :attrs :datetime)
                   :abbr (-> el :attrs :title)
                   :data (-> el :attrs :value)
-                  :input (-> el :attrs :value))
+                  :input (-> el :attrs :value)
+                  nil)
                 (node-to-text (:content el))
                 "")))
 
diff --git a/test/microformats/parser_expectations.clj b/test/microformats/parser_expectations.clj
index 12234aa..b22e3a9 100644
--- a/test/microformats/parser_expectations.clj
+++ b/test/microformats/parser_expectations.clj
@@ -130,6 +130,9 @@
 (expect {:start '("2012-08-05T14:50")}
         (parse-dt (snippet "<input class=\"dt-start\" value=\"2012-08-05T14:50\">")))
 
+(expect {:start '("2012-08-05T14:50")}
+        (parse-dt (snippet "<span class=\"dt-start\">2012-08-05T14:50</span>")))
+
 (expect {:content '({:html "Here is a load of <strong>embedded markup</strong>" :value "Here is a load of embedded markup"})}
         (parse-e (snippet "<div class=\"e-content\">Here is a load of <strong>embedded markup</strong></div>")))