#microformats 2018-01-23

2018-01-23 UTC
tantek, camb, [kevinmarks], [xavierroy], chrisaldrich, [chrisaldrich], sebsel, nitot, jjuran, [miklb], globbot, adactio, [tantek], 7IZAAPPBD, KartikPrabhu, [pfefferle], [colinwalker], TallTed, gRegorLove and [keithjgrant] joined the channel
#
KartikPrabhu
what should be the content value property for this https://aaronparecki.com/2018/01/23/5/grid
#
aaronpk
looks like it's finding the text inside the <style> tag
#
aaronpk
style and script are supposed to be explicitly dropped for p- properties
#
Loqi
[Tantek Çelik] microformats2 parsing specification
#
KartikPrabhu
aaronpk: maybe the python HTML parser gives the textContent as that style thing?
#
aaronpk
I assume style tags should not be considered text content?
#
[kevinmarks]
Sounds like we have some work to do
#
KartikPrabhu
I would think so, but mf2py leaves that to the HTML parser being used
#
[kevinmarks]
Should they be hoisted to head?
#
KartikPrabhu
[kevinmarks]: no these are inside the SVG
#
aaronpk
it would apply just as well to style tags in html content
#
KartikPrabhu
right, hoisting has nothing to do with this
#
aaronpk
<div class="e-content"><style>body{background:red}</style>my awesome website</div> for example
#
KartikPrabhu
right. and stuff like that might become more common with Web Components and stuff
#
aaronpk
I know tantek has done some per-post styles, not sure if his style tags are in the e-content or not
#
KartikPrabhu
for mf2py this might also depend on whether the lxml or html5lib parser is being used
#
tantek
and the answer is, not in the e-content, but yes in the h-entry: http://tantek.com/2015/178/t1/lovewins-css3-pride-rainbow-background
#
Loqi
[Tantek Çelik] Because #lovewins: here’s a simple #CSS3 trick for a #pride #rainbow website background:Add this style element right before your closing </head> tag:<style> /* CSS Pride rainbow bg by Tantek Çelik. CC0: share freely. */body { background: linear-gr... https://scontent.cdninstagram.com/hphotos-xfa1/t51.2885-15/11420738_425867917615828_488783301_n.jpg
#
aaronpk
that...
#
aaronpk
that's *supposed* to have the <style> in the content, unescaped! lol
#
aaronpk
got me for a sec
#
gRegorLove
Re: <style> there's an issue clarifying it, based on previous resolution. Not all instances got updates in the parsing spec text: https://github.com/microformats/microformats2-parsing/issues/17#issuecomment-357462463
#
Loqi
[gRegorLove] Proposed updates, which I believe are in line with the resolution: **parsing a p- property** No content change, just splitting out whitespace trimming into a separate bullet point: Original: > * else return the textContent of the element afte...
#
gRegorLove
*updated
#
gRegorLove
So I think a blank content.value is correct.
#
gRegorLove
+1s or objections welcome on that^ tantek, aaronpk, [kevinmarks], anybody else
#
tantek
was there a wiki edit? not reported here?
#
Loqi
[Zegnat] #17 Define removal of SCRIPT and STYLE elements everywhere textContent is requested.
#
tantek
gRegorLove: is this an edit based on a resolved issue? like I just forgot to edit one place/aspect?
#
tantek
I thought we resolved that already
#
tantek
script and style
#
gRegorLove
Yes, resolved issue and I think we missed editing some areas.
#
gRegorLove
Linked to the original resolution on gh along with the wiki revision when we updated the spec page.
#
tantek
we specifically must not remove the tags from e-* HTML parsed version
#
gRegorLove
Right. The update is only for the content.value
#
tantek
Thanks for your thoroughness gRegorLove - go for it
#
tantek
and note that it's applying the resolution to the older issue to a few spots we missed.
#
tantek
er, *I* missed
#
tantek
when previously applying edits for that issue
#
@iBinJubair
@saud264 ولا ننسى الأساس، وهو أن كود الصفحات الـ HTML يجب أن يراعي: ### Semantic HTML وتتمثل باستخدام الـ HTML Tags بشكل ذو معنى لمحركات البحث ### Semantic Web وتتمثل في هيكلة البيانات داخل كود صفحة الويب بطريقة يفهمها محرك البحث باستخدام Microdata، Microformats و RDFa وغيرها
(twitter.com/_/status/955883449147121665)
[miklb] joined the channel
#
gregorlove
edited /microformats2-parsing (+546) "applying earlier resolution in a few missed places. See https://github.com/microformats/microformats2-parsing/issues/17"
(view diff)
#
gRegorLove
Done. Added the wiki revision link to github. #17 can be closed now.
#
tantek
gRegorLove++
#
Loqi
gregorlove has 18 karma in this channel (212 overall)
KartikPrabhu, [kevinmarks], tantek and [eddie] joined the channel