[uf-dev] badly formatted hCard? (elements in children of class)
Brian Suda
brian.suda at gmail.com
Mon Jun 16 08:47:40 PDT 2008
On 6/16/08, gabriele renzi <rff.rff at gmail.com> wrote:
> given this code [..] found online[1], am I correct in asuming that it is badly formatted?
> Specifically, the "url" property is in a SPAN element, so I would use
> "Melanie Klöß" as its value, but I take it that the author wanted me
> to use the child element, so the href value of the A tag.
--- you are correct in you parsing rules, if the class="url" is on the
span, then it would use "Melanie Klöß" and if you did want the HTTP
value, you would need to move the class="url" onto the 'a' element.
> Is this behaviour correct, or shall I do it differently (and report
> bugs to other uf-parser authors) ?
--- you parsing and the parsing of other parsers is correct, it seems
to be an issue on the website[1], it would be best to report the issue
to them and help get it corrected.
Thanks for spotting that one,
-brian
> [1] http://weblog.netzgeschaedigt.de/?p=763
--
brian suda
http://suda.co.uk
More information about the microformats-dev
mailing list