Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

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

Offen
#333 2 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

@srikar-naidu arbeitet bereits daran.

Seit 30.10.2026.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

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>.

Vorherrschende Sprache
TypeScript
Sterne
8
Forks
4
Ø Merge
8 Std. 19 Min.
Gemergte PRs (30 T.)
140

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus codercops/ogcops

Alle Issues in codercops/ogcops

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.