mwunsch / prism

A Ruby microformat parser and HTML toolkit powered by Nokogiri
MIT License
63 stars 9 forks source link

Parsing returns String objects #3

Closed atd closed 14 years ago

atd commented 14 years ago
    Prism.find 'http://verselogic.net/' #=> last 2 objects are strings

I guess this is a bug. Using prism-0.1.0 gem

mwunsch commented 14 years ago

Can reproduce this with prism-0.1.0, but not master. Try cloning master and see if you get the same results.

atd commented 14 years ago

Same behavior, but different order: Prism.find('http://verselogic.net/').map(&:class).uniq #=> [Prism::Microformat::XFN, Prism::Microformat::HCard, String, Prism::Microformat::RelTag]

mwunsch commented 14 years ago

Isolated this to a problem with XOXO

mwunsch commented 14 years ago

Proper extraction of XOXO. Sort of kind of closed by 2cc92442498ec96af78b78b9499378f57f45b324