#microformats 2022-03-27

2022-03-27 UTC
barnaby, ur5us, darkkirb, jacky, trig[d], angelo, balupton[d], sayanarijit[d], hoenir_, marksuth[d], _indieweb-irc-br, trig[d]_, Silicon[d], _toby3d[d], _shaunix[d], _wackycity[d], _corenominal[d], Crypto[d], YimingWu[d], hans63us[d], Christian_Olivie, capjamesg[d], hepphepp[d], eqirax[d], laker[d], mossymaker[d], indieweb-irc-bri, hoenir, shaunix[d], toby3d[d], corenominal[d], wackycity[d], _YimingWu[d], _Silicon[d], Nan[d], daiyi[d], dovedozen[d], [manton] and Asaf_Agranat[d] joined the channel
#
[tantek]
it's not because none of that is very helpful in practice. better to HEAD request the video to get its content-type. any content-type in markup is advisory at best
#
[tantek]
as in, no better than file extension hacks
#
aaronpk
See also: browsers rendering a jpg fine even if the filename and web server header is .png
#
aaronpk
What microformats *can* be helpful for is if a particular kind of media requires different html markup to render
#
sknebel
afaik browser do use these tags for source selection, so if information is provided passing it through is likely useful
rattroupe[d], kimberlyhirsh[d], jacky and angelo joined the channel
#
[tantek]
sknebel, yes it's likely implemented somewhere, but in general it's a bad approach as with all metadata separate (and duplicated) from the data, it tends to rot
#
[tantek]
aaronpk is correct, even if *served* as one content-type on HTTP, browsers sniff the bytes to actually figure out what kind of image etc. it is
#
[tantek]
so basically, this avenue of technology development is not worth investing in, propagating
#
[tantek]
it's only in HTML for legacy reasons and it's too much work for too little reward to remove.
#
[tantek]
that is, the "type" attribute on img etc.
zack[m]1, barnaby and Darius_Dunlap[d] joined the channel
#
jacky
noted
angelo joined the channel
#
aaronpk
i do think sknebel is right that the browser does use the html attributes for video source stuff for handling multiple quality of the same video and such
jacky joined the channel
#
jacky
reducing the lookup/work a browser has to do
Jeremiah[d] joined the channel
#
aaronpk
that page could benefit from some more detail about how the browser uses these hints
#
[tantek]
and frankly, examples of sites that actually depend on it (I don't know of any)
ur5us, angelo, barnaby, barryf[d], Jack[d], jacky, mossymaker[d], dovedozen[d], Christian_Olivie, Darius_Dunlap[d], kimberlyhirsh[d], indieweb-irc-bri, Nan[d], rattroupe[d], daiyi[d], hoenir, trig[d], YimingWu[d], capjamesg[d], Asaf_Agranat[d], Silicon[d], wackycity[d], marksuth[d], Jeremiah[d], corenominal[d], shaunix[d] and toby3d[d] joined the channel