pull url from tag content if there is no href

This commit is contained in:
Shane Becker 2011-06-28 21:28:47 -07:00
parent c5ce416c37
commit 89b88c2c41

View file

@ -66,7 +66,7 @@ module Microformats2
class URL
def transform(property)
property.attribute("href").to_s
(property.attribute("href") || property.text).to_s
end
end