about summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
authorAlan Pearce2014-09-28 20:23:56 +0100
committerAlan Pearce2014-09-28 20:23:56 +0100
commite2571e582fe302337924ecc6aea27505b94b982a (patch)
treeb8d7e2a36f53db8ce45b577f78888940a5adfe93 /test
parent2beb34d0d9481faa111567b6faf019c0c179c591 (diff)
downloadmicroformats-e2571e582fe302337924ecc6aea27505b94b982a.tar.lz
microformats-e2571e582fe302337924ecc6aea27505b94b982a.tar.zst
microformats-e2571e582fe302337924ecc6aea27505b94b982a.zip
Fix error parsing dt value from unexpected element
Diffstat (limited to 'test')
-rw-r--r--test/microformats/parser_expectations.clj3
1 files changed, 3 insertions, 0 deletions
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>")))