#microformats 2014-06-06

2014-06-06 UTC
caseorganic, KevinMarks2, netweb, ivc\zz, ChiefRA, tantek and brianloveswords joined the channel
aaronpk, eschnou, caseorganic, KevinMarks2, netweb, KevinMarks, voxpelli, shaiguit1r, krijnhoetmer, bret, Garbee, Atamido, iwaim, pfefferle, chiui, robmorrissey, krendil, barnabywalters, TallTed, tantek, brianloveswords and bdesham joined the channel
#
barnabywalters
bdesham: so I just ran <div class="h-card">
#
barnabywalters
<abbr class="p-name" title="Full Name">Me</abbr></div> through http://waterpigs.co.uk/php-mf2/ and it correctly parses “Full name”
#
barnabywalters
did you by any chance copy/paste the code I typed in to #indiewebcamp? I think my IRC client added curly quotes
#
barnabywalters
which will not work correctly in HTML
#
bdesham
hmm, I'm pretty sure I did the same thing and got something different. let me check
#
bdesham
no, I didn't copy the curly quotes
#
barnabywalters
KartikPrabhu: what’s the link to your mf2py testing UI? can you add it to http://microformats.org/wiki/mf2py please?
#
bdesham
oh, nope, everything works. I must have been working with an old version of the html
#
bdesham
thanks barnabywalters!
#
barnabywalters
bdesham: excellent! not a problem :)
#
bdesham
and that tool was https://kartikprabhu.com/connection/mfparser, if that's what you meant
#
barnabywalters
thanks, I’ll add the link now
#
barnabywalters
edited /mf2py (+99) "added link to testing UI"
(view diff)
#
kylewm
can't seem to load the log. was there a resolution on the abbr title issue?
#
barnabywalters
kylewm: yep, sorted it :)
#
barnabywalters
Loqi logs for #microformats would be awesome
#
aaronpk
it's about time :)
#
kylewm
phew :) thanks
#
barnabywalters
I know you’re listening, Loqi!
bdesham joined the channel
#
bdesham
Can I expect microformats parsers to "do the right thing" for base URLs? If I specify that my h-card photo is "/images/photo.jpg", should a parser be able to resolve that path (i.e. prepend the correct host)?
#
tantek
bdesham - yes, per the microformats2-parsing spec
#
tantek
and I think there are even test cases for that too
#
barnabywalters
bdesham: yep, relative URLs will be resolved correctly, but only in circumstances where it makes sense to parse them as URLs — e.g. <span class=“u-url”>/images/photo.jpg</span> won’t resolve it
#
barnabywalters
they will correctly be resolved anywhere a URL is expected e.g. src=, href= data= attributes
#
bdesham
I'm using the tool at http://indiewebify.waterpigs.co.uk/validate-h-card and it doesn't resolve my test page, which is on a server that uses port 8080 instead of 80
#
bdesham
not sure if that's actually a bug, though
#
bdesham
barnabywalters: yeah, that makes sense, thanks
#
barnabywalters
bdesham: I see it working fine both on indiewebify.waterpigs (which is my test server) and production http://indiewebify.me/validate-h-card/?url=http%3A%2F%2Fdev.bdesham.info%3A8080%2Fabout.html
#
barnabywalters
“Success!
#
barnabywalters
We found the following h-card on your site:”
#
barnabywalters
what specifically is the issue?
#
bdesham
the image isn't found
#
bdesham
it was originally specified with a relative URL, but that tool resolves the URL against the hostname *without* using the correct port number
#
bdesham
(sorry, I realize I didn't actually say what was wrong before...)
#
barnabywalters
ah, okay — looking now
#
barnabywalters
“hello-ladies.jpg”? lol
#
bdesham
hehehe
#
barnabywalters
ah yep okay I see. it isn’t correctly resolving to the full host — aaronpk looks like that’s an issue with the relative URL resolution?
#
aaronpk
ignores the port number?
#
aaronpk
i coulda sworn I had a test case for that
#
barnabywalters
aaronpk: I thought there was too, but unless there’s a separate problem, failing real world case > test case
#
aaronpk
just need to know what to fix
#
barnabywalters
it has no port number, whereas the page URL does have a port number
#
aaronpk
gah no tests include port number, even though lots of tests include weird things like username/password
#
aaronpk
ok then
#
barnabywalters
aaronpk: I’ll raise an issue for posterity
#
aaronpk
interestingly, the rfc doesn't include a test with port numbers http://tools.ietf.org/html/rfc3986#section-5.4
#
barnabywalters
if only it was a wiki
robmorri_ joined the channel
#
bdesham
wikis for RFCs? that way madness lies ;)
#
aaronpk
fixed! with test
#
barnabywalters
aaronpk: wow that was quick
#
aaronpk
sorry for the merge commit
#
aaronpk
yes, after reading the rfc again I realized I had just left out including the port number in the "authority" segment
#
aaronpk
luckily I wrote that code to match the RFC algorithm and cited RFC paragraphs and everything
#
bdesham
thanks for the fix aaronpk!
#
@usmkurniawan
Cara atasi masalah Warning: Missing required field "updated", hCard "author", field “entry-title” di BLOGSPOT:... http://bloggingpasuruan.blogspot.com/2014/06/cara-atasi-masalah-warning-missing.html?utm_medium=twitter&utm_source=twitterfeed
(twitter.com/_/status/474954344077348865)
chiui and robmorrissey joined the channel
#
bdesham
me again ;) how do I use the "href" attribute of a <link> as a microformat property value? setting class="u-url" doesn't seem to work
tantek, brianloveswords, eschnou, philipashlock and robmorrissey joined the channel
#
bdesham
how do I use the "href" attribute of a <link> as a microformat property value? setting class="u-url" doesn't seem to work
#
KartikPrabhu
bdesham: any reason you'd like to use <link> which is a hidden element vs <a> which is visible to readers?
#
tantek
bdesham - really? what's your example?
#
KartikPrabhu
tantek: the mf2 parsing for u-* does not specify looking at <link> http://microformats.org/wiki/microformats2-parsing#parsing_a_u-_property
#
tantek
KartikPrabhu: probably because it is invisible
#
tantek
though we do support it for the rels - because that limits it, and there's been some solid use-cases presented for <link rel>
#
KartikPrabhu
tantek: any page where these use cases are written up?
#
tantek
KartikPrabhu: usually on *-examples pages on the microformats wiki
#
KartikPrabhu
ok will look
#
tantek
on the #indiewebcamp wiki, it's usually in a section
#
tantek
on a page on the subject
#
tantek
sometimes they're resolved by raising issues, e.g. on the *-issues page
#
KartikPrabhu
aah cool...
robmorrissey joined the channel
#
bdesham
I want to include a link to my "about me" page from my "about me" page. it would be silly to have an actual <a> link, and there's already a <link rel="canonical"> in the header
#
KartikPrabhu
bdesham: but what is the purpose of marking it up? As in what microformat do you want to use?
krendil, Rastus_Vernon and tantek joined the channel