ZegnatNice to see clarification on the datetime value. If the reason is to make it simpler for the json consumer, I wonder if it's worth just saying to always normalise to an HTML datetime value. Presumably that's what people expect as non-vcp dt-* parsing is usually from time elements.
ZegnatTo always normalise vcp output to an html datetime value then. Basically instead of having the list of example results, we can link to a spec that specifies then explicitly is my thinking
Loqi[@lynncyrin] *points out the failing tests* Is THIS your team? *rolls out all the linter errors* Is THIS your team????? *merges my PR, and all the status indicators turn green* pft, naw. I'm your lead engineer now
Zegnatadminhelp: how do I get promoted on the microformats wiki so I can create a page? I would like to put the plain text values algorithm on the wiki for further iterations and brainstorming.
KevinMarks, kaushalmodi, Garbee, webchat362, [eddie], [kevinmarks], KevinMarks_, nitot, nitot_, barpthewire, [kim_landwehr], gRegorLove_, [cleverdevil], [Mike], [pfefferle] and [cb] joined the channel
ZegnatThat’s what the issue was about. Users filing issues on parsers because the DOM tree’s textContent property didn’t match their expectations (e.g. <p>A</p><p>B</p> becomes "AB" without any whitespace). And standard DOM implementations like the one in PHP do not have HTML’s innerText available for a prettier output.
ZegnatWe could try to normalise on HTML’s innerText, but that assumes CSS knowledge, which is often also lacking when you are working only with HTML parsers and DOM trees. So had to figure out something else.
ZegnatThe algo I wrote is based on expectations aaronpk colated and some simple CSS whitespace collapsing rules. It should also be relatively easy to implement, I have already done both a JS and PHP implementation.