all repos — archive/microformats @ e741d80aac6cc88ba7101585924d070a35583e5b

Incomplete Clojure microformats library

Find the base URL only once

Alan Pearce
commit

e741d80aac6cc88ba7101585924d070a35583e5b

parent

20fa6dcbf6cdb737155e1928455133ebbc0654bf

1 file changed, 1 insertion(+), 1 deletion(-)

jump to
M src/microformats/parser.cljsrc/microformats/parser.clj
@@ -403,7 +403,7 @@
(defn parse "Parse a HTML string with microformats" ([html] - (let [document (some->> html to-node with-base-url)] + (let [document (to-node html)] (parse document (get-base-url document)))) ([html base-url] (let [document (some->> html to-node first (with-base-url base-url) z/xml-zip)]