shadowmaru / microformats_helper

Microformats Helper is a gem for generating content-rich tags in HTML files, following Microformats standards. For more information about Microformats, check its website (http://microformats.org).
Other
49 stars 8 forks source link

hcard doesn't accept non-named telephone number #5

Open jrmehle opened 11 years ago

jrmehle commented 11 years ago

According to the hcard microformat spec, this the following markup is OK

<div class="tel">+1.818.555.1212</div>

The hcard method requires you pass a hash to :tel. It should accept a single phone number string and render the above markup.

shadowmaru commented 11 years ago

Hi @jrmehle, you're right. I'd gladly accept a patch that accepts a single string, as well as the hash.