#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)
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
# real_devastatia Do you remember what you changed in the h-card, Michelle?
# real_devastatia This sticks out at me:
# real_devastatia <div style="display:none;" class="h-card">
# real_devastatia I'd do this instead:
# real_devastatia <div hidden class="h-card">
# real_devastatia Attributes with no value assignment make me squeamish.
# real_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.
# real_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.
# real_devastatia HTML parsers are incredibly difficult to implement because HTML5 isn't XML compliant. I'm amazed browsers even work.
# real_devastatia I use regex to parse my custom tags. I wouldn't even attempt an HTML DOM parser.
to2ds joined the channel
# real_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
# real_devastatia Noice!
# real_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