Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[Bug] Meta analyzer ignores overlong og:title when <title> is missing

Aperta
#333 2 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@srikar-naidu ci sta già lavorando.

Dal 30/10/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

bug hacktoberfest

Describe the bug

The meta analyzer checks the length of the HTML <title> element but does not check the length of og:title when no <title> element is present. Since og:title becomes the effective title for social previews, overly long values can pass without a warning.

To Reproduce

  1. Open the Preview Checker.
  2. Analyze a page without a <title> element.
  3. Add an og:title longer than 70 characters:
<meta property="og:title"
      content="This is an intentionally very long Open Graph title that exceeds seventy characters">
  1. Review the analyzer results.

Expected behavior

The analyzer should warn that the effective title is longer than the recommended 70-character limit.

Actual behavior

No title-length warning is shown when the long value exists only in og:title.

Screenshots

Not applicable.

Environment

  • Browser: Chrome
  • OS: Windows 11
  • Node version: 22.x
  • npm version: 10.x
  • URL: Local Preview Checker or the relevant API URL

Additional context

The analyzer should validate the effective title using:

const effectiveTitle = tags.title || tags.ogTitle;

A regression test should also be added for pages containing an overlong og:title without an HTML <title>.

Lingua principale
TypeScript
Stelle
8
Fork
4
Merge medio
8h 19m
PR unite (30g)
140

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di codercops/ogcops

Tutte le issue di codercops/ogcops

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.