[uf-dev] badly formatted hCard? (elements in children of class)

gabriele renzi rff.rff at gmail.com
Mon Jun 16 09:05:43 PDT 2008


On Mon, Jun 16, 2008 at 4:47 PM, Brian Suda <brian.suda at gmail.com> wrote:
> 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.


yay :D

would it make sense to add something on the lines of this to the test
suite? I can provide a patch if needed, since I already have it in my
test suite.


>>  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.
>


I will, thanks again.



-- 
goto 10: http://www.goto10.it
blog it: http://riffraff.blogsome.com
blog en: http://www.riffraff.info



More information about the microformats-dev mailing list