Skip to content

site: what browsers and chat apps do with broken metadata - #525

Open
cevdetch wants to merge 2 commits into
mainfrom
site/metadata-lab-post
Open

cevdetch wants to merge 2 commits into
mainfrom
site/metadata-lab-post

Conversation

@cevdetch

Copy link
Copy Markdown
Owner

What changed

  • content/blog/broken-metadata-in-browsers-and-chat-apps.md: a post on Astro Metadata Lab, 121 test pages with one deliberate change to the head each. It covers the method, the clients tested, the findings (field precedence, fallbacks, card layout, images, canonical/noindex/redirect/404, parser behaviour, favicons, colour schemes), what it means for authors, and the deadhead rules each finding relates to. It links the lab, its repository and Astro Minimal Template. draft: true, see below.
  • site/astro.config.mjs: blog posts get a sitemap lastmod (updatedDate, else pubDate), read from frontmatter like the rule dates. Separate commit.

Why

The post gives the blog a second measured piece and shows, with recorded client behaviour, why the social and head rules exist. The sitemap change gives search engines a date for each post, which rule pages already had.

Why it is a draft

The public lab repository (main at ab2f459) and the live result pages hold only the first batch: favicon results in four browsers, dark-mode colour-scheme results, the theme-color preview observation and HTTP probes. The link-preview runs (S005–S051), the parser/head, JSON-LD, language and viewport runs (B014–B024) and the light-mode follow-up (B012/B013) are recorded in the lab checkout but not committed or pushed, so the live result pages still say "not tested" for them. Push and deploy those results, then flip draft to false (and set pubDate to the publishing day).

Claims to check

Sourced only from the unpushed lab results:

  • Precedence: with HTML A, OG B/red and Twitter C/green present, WhatsApp, Molly, Discord and Instagram showed B/B/red; LinkedIn Post Inspector showed title B, red image, no description. HTML only: all used the title, all but LinkedIn the description, no image.
  • Twitter-only page: WhatsApp and Discord used C/green; Molly, Instagram, LinkedIn fell back to title A, no image.
  • Twitter block first: only Discord changed, to title and description C with the red (OG) image.
  • OG omissions: no og:title gave WhatsApp, Molly, LinkedIn the <title>, and Discord no title and no description; no og:description gave WhatsApp/Molly the meta description and Discord none; no og:image gave no image anywhere. Removing og:type, og:url or image dimension tags changed nothing visible.
  • Card layout: Molly, Instagram, LinkedIn showed large images for summary, no card and summary_large_image; Discord showed the summary layout unless summary_large_image was set. The "large only with summary_large_image" half is inferred from the first batch (S007) plus the card batch (S018).
  • Images: root-relative og:image worked in LinkedIn, Molly, Discord, Instagram and not WhatsApp; SVG only in Instagram; a 404 image gave placeholders in Discord and Instagram.
  • Canonical absent/relative/cross-origin: normal cards everywhere; displayed domains as written. noindex pages still got cards; redirect showed the target's card; 404 gave no card except in Instagram.
  • LinkedIn's post composer failed for every lab URL (and deadhead in DMs); the post says only that the composer failed and the results come from Post Inspector.
  • Parser: misplaced <div> moved title, description, canonical and og:title into <body> in Firefox and Brave; noscript metadata behaved differently with scripting on/off in Firefox; unescaped JSON-LD failed to parse and ran the injected <img onerror> in Firefox, the < version did not; charset pages rendered fine in all four browsers because the header named UTF-8; Vanadium laid out the no-viewport page at desktop width.
  • Light mode: Firefox and Vanadium showed light dark and dark light as light, dark as dark.

From the published results, but worth a second look:

  • Favicon summary for Brave, Firefox and Vanadium (the bullet list), and the decision to set Tor's icon results aside as likely caching (it showed icons some pages never declared).
  • Tor staying light in dark mode "matches its fingerprinting protection reporting a light preference": the lab records this as the tester's explanation, not a measurement; the post says so.
  • "Firefox 160 Nightly" for 160.0a1, "Molly 8.19 (a Signal fork)", and Discord and Instagram described as web clients (recorded as discord.com and instagram.com).
  • "its head follows what the lab showed" about Astro Minimal Template.

Verification

  • pnpm check:site and DEADHEAD_DRAFTS=1 pnpm check:site: no findings; budget, SEO and crawler checks pass (draft build: 250 pages, post 7.4 kB gzip within blogPostMaxGzip, blog index 1204 / 2000). No budget changes.
  • pnpm site:check 0 errors/warnings/hints; pnpm test 908 pass.
  • Draft build inspected: BlogPosting JSON-LD with all article fields, byline, Atom entry, llms.txt entry, sitemap lastmod 2026-11-12 for the post and 2026-10-13 / 2026-10-05 for the existing posts in the normal build. Every internal link in the post resolves to a built page; the external lab, repository and template URLs return 200.
  • The author still links to GitHub on this branch; feat(site): link authorship to cevdet.ch #519 changes that for every post.

Rule URLs carried a lastmod in the sitemap and posts did not, so a
search engine had no date to tell a new or revised post from an old
one. Each post's entry now takes its updatedDate, or its pubDate when
it has none, read from the frontmatter the same way the rule dates are.
A draft post on Astro Metadata Lab, 121 pages with one deliberate
change to the head each, opened in four browsers and shared in five
chat apps in October 2026. It reports which of the HTML, Open Graph
and Twitter values each client used, how missing tags, relative and SVG
images, canonicals, noindex, redirects and 404s showed in previews,
what the parser did with a misplaced element, noscript metadata and
unescaped JSON-LD, and how favicon declarations and color-scheme
resolved. Each finding links the rule that covers it.

Kept as a draft: the link-preview and parser results are recorded in
the lab but not yet published in its repository.
@cevdetch
cevdetch force-pushed the site/metadata-lab-post branch from 5e9ec46 to 0a60a41 Compare November 28, 2026 20:18

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant