all repos — archive/microformats @ 46d8526af589558b7ed1a2537e96953245c08720

Incomplete Clojure microformats library

Add basic implied URL parsing

Alan Pearce
commit

46d8526af589558b7ed1a2537e96953245c08720

parent

4f80b088207c13f787a2b2bfbb5a716fe9a5dbb5

1 file changed, 3 insertions(+), 0 deletions(-)

changed files
M test/microformats/parser_expectations.cljtest/microformats/parser_expectations.clj
@@ -130,6 +130,9 @@
(expect {:items [{:type ["h-card"] :properties {:name '("Example User")}}] :rels {}} (parse "<p class=\"h-card\">Example User</p>")) +(expect {:items [{:type ["h-card"] :properties {:name '("Example User") :url '("http://example.com")}}] :rels {}} + (parse "<a class=\"h-card\" href=\"http://example.com\">Example User</a>")) + (expect {:items [{:type ["h-adr"], :properties {:street-address '("665 3rd St."),