#microformats 2016-04-22

2016-04-22 UTC
miklb, miklb_ and KevinMarks joined the channel
#
kylewm
hey tantek do you have a sec to look at this? https://github.com/tommorris/mf2py/issues/67
#
kylewm
there is an implied name rule that says img:only-child, and I dont' know if that includes text nodes too or only other tags
#
tantek
yes CSS selectors for *child are element based
#
tantek
counting text nodes in that would make such selectors almost useless
#
tantek
just understanding the element tree is hard enough
#
tantek
hmm - explicitly empty alt is always an interesting edge case
#
kylewm
yeah :/
#
tantek
and by that I mean, good catch! :)
#
tantek
wow there is != in attr selectors
#
tantek
s/there is/there is no/
#
Loqi
tantek meant to say: wow there is no != in attr selectors
#
tantek
oh wait. :not([alt=""])
#
tantek
kylewm did you already add a mf2 parser issue for this?
#
kylewm
wha? that's what i linked to initially
#
tantek
parsing *spec* issue sorry ;)
#
tantek
the parser itself seems to be following the spec
#
kylewm
oh nope! i didn't know if the parser was following the spec
#
tantek
yup - good reason to make the parsing spec fix ASAP
#
tantek
my guess is that it's treating all empty attribute values as if they don't exist
#
kylewm
am adding the issue now
#
tantek
which I think we should do in the spec - what does microformatshiv do?
#
tantek
basically all the attr stuff like [alt] needs to be [alt]:not[alt=""]
#
kylewm
what is the difference between shiv and parser?
#
aaronpk
that's something we fixed in the php parser last week
#
kylewm
(aside: damn everything glenn makes is pretty)
#
kylewm
the js parser gets the correct implied name
#
tantek
and by "correct" you mean "desired" right? ;)
#
tantek
is too much of a spec/standards-head, where "correct" means compliant with the spec.
#
kylewm
aw yeah sorry I even knew that was going to be ambiguous. js parser gives "@kylewmahan" as the name
#
tantek
the desired result :)
#
tantek
great - that's good enough reason to fix the spec - we already have parser interop on the desired behavior
#
kylewm
edited /microformats2-parsing-issues (+580) "/* implied name when alt="" */ new issue"
(view diff)
#
kylewm
edited /microformats2-parsing-issues (+206) "/* implied name when alt="" */ proposal"
(view diff)
#
tantek
edited /microformats2-parsing-issues (+331) "/* implied name when alt="" */ +1 on proposal additional details to keep it consistent"
(view diff)
#
tantek
!tell tommorris,barnabywalters,kevingmarks please take a look at http://microformats.org/wiki/microformats2-parsing-issues#implied_name_when_alt.3D.22.22 and add your opinion - I'd like to move quickly on this since we have impl interop on desire (rather than spec) behavior!
#
Loqi
Ok, I'll tell them that when I see them next
KartikPrabhu, laughinghan, tantek, miklb and sagerdearia joined the channel
Garbee and TallTed joined the channel
tantek joined the channel
gRegorLove, laughinghan, danbri1, KevinMarks, miklb, sagerdearia and KartikPrabhu joined the channel
#
KartikPrabhu
ehh what ^?
#
Loqi
[@galoot] so-called 'Summer of Love' @ursustristis
#
tantek
dang that's one angry twitter account
Phae, KartikPrabhu, laughinghan, tantek, danbri and bear joined the channel