#@tmcw✨ google finally started parsing my site's microformats and now my book reviews have lil stars next to the results! the dream of web 2.0 is alive. (twitter.com/_/status/1056359137271996416)
Xeno1 joined the channel
#KartikPrabhuis there any use-case for separately marking up the currency?
#KartikPrabhuthe example in the wiki page uses value-class pattern but you can skip that entirely to have the price parsed as "$20.00"
#rockman37The potential use-case is so that search engines etc. know what currency is being represented; of course, this relies on them actually doing that.
#KartikPrabhuor parsing microformats in the first place
#rockman37That they apparently do, according to the Wiki.
#rockman37It just doesn't make a lot of sense to me to do anything with price information unless you know what currency is being represented.
#KartikPrabhuusing <span class="p-price">$20.00</span> looks fine to me
#rockman37(Other than blindly show it to the user.)
#rockman37That's fine, but I don't know from that what currency that is (other than some kind of dollar, obviously).
#KartikPrabhu"20.00 USD" or "20.00 US dollars" also works
#KartikPrabhuthis all depends on what you want to do with the parsed information other than show it to the user
#KartikPrabhuif you have a use-case for actually using the parsed currency that would be great
#rockman37My main reason for including it at this point is just so it's available in a machine-readable format if so needed; I'm not (yet) writing any code that parses and uses the data.
#KartikPrabhuright. without any actual consuming use-case for the parsed data there is no real reason to add another property
#rockman37A related question: In classic microformats, is it actually valid to include HTML markup within an element marked up as a microformat property? E.g., <div class="price"><abbr class="currency" title="NZD">NZD</abbr> $50</div>
#KartikPrabhuI don't think that will be parsed correctly
#aaronpkrockman37: yes, with the caveat that some consumers of the data may expect only a plaintext value for some things so it just doesn’t make sense to use e- for those. Like “published” date for example