diff --git a/lib/microformats2.rb b/lib/microformats2.rb index 4c994ed..75f0f9f 100644 --- a/lib/microformats2.rb +++ b/lib/microformats2.rb @@ -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