#wordpress 2024-01-06

2024-01-06 UTC
tiger1 and angelo joined the channel
#
tantek.com
edited /Refback_for_WordPress (+216) "dfn, abandoned by users, No current IndieWeb Examples, Previous Examples subsection"
(view diff)
#
GWG
[tantek]: One of these days I'll unabandon it...so much to do, never enough time.
#
[tantek]
GWG, precisely because you have so much to do, and will likely keep seeing a flow of things to do of higher importance than unabandoning it, that the likelihood of that is close to zero, and that's ok.
angelo, [tantek], Jo1, lazcorp, [Joe_Crawford], gRegor, petermolnar and [TMichelleMoore] joined the channel
#
[TMichelleMoore]
Hello [snarfed] - [tantek] has inspired me to start my 100 Days of IndieWeb posts back up. I want to use BridgyFed. I almost had it setup and am running into a snag. When I look at my profile on Mastodon, the picture isn’t there. It was there at first and I updated the card. I tried a lot of manipulating the h-card, refreshing from the BridgyFed interface, checking html tags. I checked Indiewebifyme -
#
[TMichelleMoore]
https://indiewebify.me/validate-h-card/?url=https%3A%2F%2Ftmichellemoore.com%2F and it’s displaying the h-card info. I purged the caches on my website. Can you point me to what I might look for next to fix it? And Happy New Year everybody!
lazcorp joined the channel
#
r​eal_devastatia
Do you remember what you changed in the h-card, Michelle?
#
[tantek]
Happy new year [TMichelleMoore] and glad to hear it! I think you may need to ping [snarfed] to help figure out why the image from your h-card isn't showing up on Mastodon
#
r​eal_devastatia
This sticks out at me:
#
r​eal_devastatia
<div style="display:none;" class="h-card">
#
r​eal_devastatia
I'd do this instead:
#
r​eal_devastatia
<div hidden class="h-card">
#
r​eal_devastatia
Attributes with no value assignment make me squeamish.
#
r​eal_devastatia
They seem to break the DOM also. When I have a video tag with a dangling autoload attribute followed by a div in my page, the inspector shows the div is a child node of the video element, which it isn't.
#
r​eal_devastatia
[edit] They seem to break the DOM also. When I have an audio tag with a dangling autoload attribute followed by a div in my page, the inspector shows the div is a child node of the video element, which it isn't.
#
sknebel
hm, its possible that trips up the parser, since afaik bridgy doesnt use a full HTML5 compliant parser
#
sknebel
try hidden="hidden" instead
#
r​eal_devastatia
HTML parsers are incredibly difficult to implement because HTML5 isn't XML compliant. I'm amazed browsers even work.
#
r​eal_devastatia
I use regex to parse my custom tags. I wouldn't even attempt an HTML DOM parser.
to2ds joined the channel
#
sknebel
eh, html5 is very well defined, so browsers working is not exactly a surprise. like a parser is a bunch of work, but not in the context of all the other effort that goes into building a browser
#
sknebel
but in other languages its a bit of an issue
#
sknebel
python has a good one, but its a bunch slower than the alternative which is afaik why bridgy isnt using it
#
r​eal_devastatia
PHP doesn't have one. A workaround would be to use Tidy to convert the document to XHMTL and then use DOMDocument, I guess.
#
sknebel
PHP has https://github.com/Masterminds/html5-php, which e.g. the microformats parser uses
#
Loqi
[preview] [Masterminds] html5-php: An HTML5 parser and serializer for PHP.
#
r​eal_devastatia
Noice!
#
r​eal_devastatia
I'd heard a SAX parser for HTML couldn't be implemented because some tagsets don't have a closing tag and aren't required to have a self-closing marker as in XHTML. Apparently this one infers that a tag has been closed from the opening tags of subsequent tagsets.
[tw2113] joined the channel