2014-08-14 UTC
KevinMarks, KevinMarks_, KevinMarks3, tantek, andicascadesf, gRegor` and KartikPrabhu joined the channel
tantek, KevinMarks, Loqi, iwaim, uf-wiki-visitor, statonjr, KartikPrabhu, andicascadesf, Soopaman, krendil, barnabywalters, adactio, robmorrissey, elux, TallTed and philipashlock joined the channel
Soopaman, TallTed, eschnou, gRegor`, MacTed, barnabywalters_, philipashlock, bret, Loqi, KevinMarks, barnabywalters, robmorrissey, Garbee, krendil, tantek, adactio and kylewm joined the channel
# 21:07 KartikPrabhu good point. are mf2-parsers supposed to ignore the <script> contents while looking for e-content.value?
# 21:08 aaronpk I would imagine the contents of the script tag should not appear in the "value"
# 21:08 KartikPrabhu aaronpk: intersting then that the HTML parser used by mf2py does not respect that
# 21:11 KartikPrabhu kylewm: definitely open an issue on mf2py... could resolve it if that is the consensus
# 21:13 kylewm and it would break some assumptions if we started
# 21:13 kylewm (makes it hard to distinguish notes with an autogenerated title from articles with a title)
# 21:13 Loqi kylewm meant to say: (makes it hard to distinguish notes with an autogenerated name from articles with a name)
# 21:16 kylewm so the question is if i say <div class="h-entry">This is me at summer camp: <img src=".." alt="me at camp"/></div>
# 21:17 kylewm the p-name will be "This is me at summer camp:" and the e-content.value will be "This is me at summer camp: me at camp"
# 21:18 kylewm based on "else use the textContent of the .h-x for name "
# 21:18 KartikPrabhu we should do the <img> -> alt/src everywhere at once to avoid this problem
# 21:21 kylewm KartikPrabhu: I'm +1 for changing it if we change both to be consistent with each other
# 21:22 KartikPrabhu kylewm: yes. will have to dig through BS innards to see how it is working. Also the whole html5parser vs lxml rabbit hole opens up again
# 21:23 kylewm textContent of a u-photo is blank in Firefox, btw
# 21:23 kylewm I just ran: document.querySelector('.u-photo').textContent
# 21:39 tantek alt values should be readable inline with the text that they're in, e.g. if the images don't load, *OR* if someone is using a screen reader.
# 21:40 KartikPrabhu tantek: sure the alt value is not nicely designed/written. but we're just wondering how mf2-parsers should deal with such.
# 21:40 KartikPrabhu atm neither mf2py nor php-mf2 do the img -> alt substitution. and apparently FF does not include alt values in its textContent
# 21:41 tantek the img->alt substitution is only for e-content value
# 21:42 KartikPrabhu so the question is tantek, if the e-* thingie has a <script> tag in it should everything inside the <script> be deleted for e-*.value or should the contents of the <script> be included?
# 21:42 kylewm KartikPrabhu: no, parsing a p-* property has a different definition than the implied "name"
# 21:45 tantek KartikPrabhu: no, parsing p-* is different, that's the point
# 21:45 tantek KartikPrabhu: re: <script> tag parsing - supposed to follow HTML parsing rules, nothing special there
# 21:46 KartikPrabhu tantek: re: script... yeah it seems both mf2py and php-mf2 incluide the contents in the e-*.value so maybe that is ok... where are these HTML parsing rules anyway?
# 21:51 kylewm KartikPrabhu: OK, I think that means we're good then. document.querySelector('.h-entry .e-content').textContent includes the script contents
Rastus_Vernon and KevinMarks_ joined the channel