2017-05-24 UTC
[chrisaldrich], [cleverdevil], tantek, KartikPrabhu, [tamaracks], barpthewire, [kevinmarks], adactio and [jemostrom] joined the channel
# 13:23 Zegnat I need to enable JS to post to the Microformats wiki?!
# 13:26 Loqi zegnat has 1 karma in this channel (50 overall)
# 13:27 Zegnat recaptcha even, so have to enable JS from external domain (google.com)
# 13:27 Zegnat Spam bots create user pages on the wiki no problem, and I can’t add my pronoun work :p
# 13:35 Zegnat Wow, and then apparently it didn’t save it as a section edit but as a page edit, so now I will have to go and fix things
# 13:50 Zegnat Not sure what the next step to this would be other than spamming people about adding their pronouns to their pages, preferably in my way
# 14:02 Zegnat That will require some thought, seeing as how almost my entire point is that there is no easily defined and computer parsable format for pronouns.
adactio joined the channel
[sebsel] joined the channel
tantek joined the channel
# 15:48 aaronpk we should do a release soon, lots of good new stuff in the php parser
# 16:03 tantek apparently all your <base> belong to github, not your comments
# 16:25 Loqi [gRegorLove] #113 Fix parsing of "value" for nested microformats when not a property
rodolfojcj joined the channel
# 16:39 aaronpk i wanna get a few more easy issues into this release
# 16:40 ben_thatmustbeme at some point i want to loop over all that test suite for all the parsers and compare results
# 16:47 aaronpk i *think* these are all bugfixes so this will be 0.3.1 rather thamn 0.4.0
# 17:06 aaronpk why are there a bunch of checks for whether getAttribute returns null
# 17:08 tantek aaronpk, may be because attribute non-existence vs attribute=""
# 17:08 aaronpk looks like getAttribute will return an empty string if the attribute doesn't exist
# 17:09 Loqi [Tantek Çelik] microformats2 parsing specification
# 17:10 aaronpk is `if a.u-x[href]` meant to test the existence of the href attribute or whether the value is non-empty?
KartikPrabhu joined the channel
# 17:12 aaronpk this whole u- parsing section is only working by coincidence
gRegorLove joined the channel
# 17:17 tantek aaronpk, "only working by coincidence" implies you could design a simple test that parser would fail that others would pass?
# 17:18 ben_thatmustbeme i think its more like "all this code is useless and it works but by some other unintentional method"
# 17:18 aaronpk there aren't tests for <a href="" class="u-url"> for example
# 17:19 aaronpk but, spec parsing question: does "if a.u-x[href]" mean "if there is an href attribute"? because that should be made more explicit if so
[shaners] joined the channel
# 17:20 Zegnat aaronpk that should mean existence, including empty ones, I think. Much like yesterday's discussion on empty alt values
# 17:21 aaronpk `$u->getAttribute('href') !== null` -- getAttribute never returns null
# 17:22 [shaners] Ruby / Rails have methods like .blank? and .present? which check for nil, empty string/array/hash/etc. Does PHP have something similar?
# 17:23 aaronpk i believe all these checks should actually be checking whether the attribute is present
# 17:26 [shaners] Rule 34.1: If you can contrive it, someone will code it for real in the wild.
# 17:27 tantek [shaners] if only, plenty of things are contrived at W3C which are never coded for real in the wild
# 17:28 tantek this is why I had to work on explicit process for "obsoleting" W3C specs.
# 17:29 tantek because there are so many that are completely disconnected from anything "real in the wild"
# 17:29 tantek aaronpk in that example the data element p-* parsing should get the URL "" from the explicit value=""
# 17:30 tantek and yeah "p-url" should be something that validator issues a STRONG WARNING about
# 17:30 tantek as in, you really don't want to use p-* with something URL like
# 17:30 aaronpk okay yeah let me do this with something not called url
# 17:31 aaronpk the parsed result should have a content property that is an empty string, right?
# 17:33 [shaners] Is an attr with an empty string the same as a non-existent attr?
# 17:35 KartikPrabhu [shaners]: no I think it says that the author explicitly set it to empty string instead of not specifiying
# 17:36 tantek yes explicit empty strings are the text equivalent of explicit 0 instead of undefined
# 17:36 aaronpk it's resolving the empty string relative to the base URL
# 17:37 aaronpk because in `$u->getAttribute('href') !== null` , getAttribute will never be null
# 17:37 Loqi [Tantek Çelik] microformats2 parsing specification
# 17:39 aaronpk switching these to hasAttribute instead of getAttribute !== null fixes it, so i'm going to PR that
# 17:41 Loqi [dissolve] #72 blank value not returning blank string
# 17:53 aaronpk it depends on whether HTML says that element has textContent of ""
# 18:08 Loqi [aaronpk] #119 Fixes for elements with missing attributes (#118)
# 18:26 aaronpk will wait for gRegorLove to review, then I want to publish a new release
# 18:31 aaronpk i feel like that should be made explicit in the html spec
# 18:33 ben_thatmustbeme <Domenic> ben_thatmustbeme: in general it's understood that the concatenation of an empty set of strings is the empty string; I guess we could eventually define that explicitly, but it's generally true in programming.
# 18:34 tantek I suppose the concatenation coerces to a string result rather than a null result
# 18:36 Loqi [aaronpk] #120 parse poster attribute for video tags
# 18:44 aaronpk gRegorLove: 120 is expected to fail until 119 is merged
# 18:46 aaronpk thats whast led me down this whole rabbit hole to begin with
# 18:46 aaronpk i saw that i wouldn't be able to add support for the poster attribute withotu fixing the getAttribute check
# 18:46 Loqi aaronpk has 8 karma in this channel (1325 overall)
[shaners] joined the channel
# 19:04 Loqi ben_thatmustbeme has 14 karma in this channel (224 overall)
# 19:05 [shaners] no sense in holding one/some back just because there was recently a release.
gRegorLove_, gRegorLove, [barryf], cheim and [cleverdevil] joined the channel