#microformats 2018-02-25
2018-02-25 UTC
#
KartikPrabhu while parsing attributes for propreties http://microformats.org/wiki/microformats2-parsing#parse_an_element_for_properties (e.g. getting the href of <a> for a u-url) if the attribute is a blank string it should still count as found yes?

#
KartikPrabhu asking since mf2py is a bit overzealous and rejects empty string values

#
KartikPrabhu long standing bug from 2014 https://github.com/kartikprabhu/mf2py/issues/46

#
KartikPrabhu tantek: ping ^^ since you might have a quick answer

#
KartikPrabhu tantek: see example link mentioned in the issue https://github.com/kartikprabhu/mf2py/issues/46

#
KartikPrabhu the link uses href="" to denote u-url and u-uid but mf2py rejects those blank values

#
KartikPrabhu borwsers though send href="" to current page URL

#
KartikPrabhu ok so will fix mf2py to never reject explicitly authored blank values

#
KartikPrabhu cool, so this definitely needs to be fixed

#
KartikPrabhu https://joskar.se/en/2014/exam-weeks-and-comments-on-the-side or I can make a simple example

#
KartikPrabhu tantek: https://github.com/kartikprabhu/mf2py/issues/46#issuecomment-368272838 simple example

#
KartikPrabhu woah there Loqi

#
KartikPrabhu yeah seems like explicitly authored blank properties should be allowed. fixing in mf2py currently

#
KartikPrabhu for value-class-patter in date and time parsing http://microformats.org/wiki/value-class-pattern#Date_and_time_parsing does "innertext" mean the same as textContent elsewhere i.e. textContent dropping <style> and <script>? What about substituting img with alt and src ?

#
KartikPrabhu ok fixed blank attributes in mf2py now

#
KartikPrabhu enough python for today!

tantek joined the channel
#
KartikPrabhu ok

#
tantek edited /Special:Log/block () "blocked [[User:HashGains Mining]] with an expiry time of infinite (account creation disabled): Removing content from pages: spam" (view diff)
KartikPrabhu, tantek, [mrkrndvs], [miklb] and [kevinmarks] joined the channel
#
[kevinmarks] They already tainted "crypto", now "hash" as well?

ivc and voxpelli joined the channel
[mrkrndvs], nitot, tantek, barpthewire, [eddie] and [jeremycherfas] joined the channel
#
KartikPrabhu anyone wants to take a shot at this https://github.com/microformats/microformats2-parsing/issues/20

#
KartikPrabhu lol

#
Zegnat Note that innerText does have a meaning: https://html.spec.whatwg.org/multipage/dom.html#the-innertext-idl-attribute

#
Zegnat In fact, that innerText algo may or may not also be something to consider for https://github.com/microformats/microformats2-parsing/issues/15

#
KartikPrabhu that depends a lot on the styles in CSS too for instance "'display' property is not 'none':"

#
KartikPrabhu unless the use-case does not need that

#
KartikPrabhu the goal is to sanely parse value-class-pattern for dates

#
KartikPrabhu yeah date parsing is pretty annoying. I don't understand even half of the code in mf2py that does this, no idea how kylewm figured it out!

[eddie] joined the channel
#
Zegnat A thing some people may like, not sure anyone made one before, JSON Schema for a microformat: https://gist.github.com/Zegnat/65ed9a9fb0546fb8c4aa0c0b790b8a40

vivus, nitot, [jeremycherfas] and tantek joined the channel