Skip to content

Add the missing period to the footer credit line - #24

Merged
tgwab-claude merged 2 commits into
mainfrom
dev/footer-credit-period
Sep 19, 2026
Merged

tgwab-claude merged 2 commits into
mainfrom
dev/footer-credit-period

Conversation

@tgwab-claude

@tgwab-claude tgwab-claude commented Sep 19, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes the footer credit line to match DEV-STANDARDS §1 exactly, per the estate-wide footer-credit audit (2026-09-19).

Divergences found (all fixed):

  • Missing trailing period.
  • rel="noopener noreferrer" -> rel="noopener" (standard's exact text).
  • Both URLs missing their trailing slash.
  • Hardcoded 2026 -> a build-time year. This site has no build step (package.json: "static, no build step"), so the year is corrected client-side: <span id="footer-year">2026</span> plus a small inline script that sets it to new Date().getFullYear(). With JavaScript disabled or blocked, the span still shows the literal 2026 (a stale-but-present year, never a blank one). A future move to a hashed CSP (script-src with 'sha256-...', no 'unsafe-inline' — already the pattern on account.tgwab.us) must add this script's hash, or the year silently freezes at 2026.

Verified locally: npm run lint, the DS §15 XSS fixture, node test/harness.mjs, and npm audit --audit-level=high (0 vulnerabilities). Confirmed by reading the served HTML (not normalized text) that the rendered line is exactly "© | Created with ❤️ by Michal Ferber, aka TechGuyWithABeard." with single spaces throughout.

Generated with Claude Code
https://claude.ai/code/session_01Sy87wxWsc51sBPzwFkS7jW

Also matches the standard's exact rel/URL/year form: rel="noopener"
(drop noreferrer), trailing slashes on both URLs, and a build-time
year instead of the hardcoded 2026 (via inline script, since this
site has no build step).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Sy87wxWsc51sBPzwFkS7jW
The previous commit's document.write approach renders no year at all
when script does not run (JS disabled, reader mode, or a future move
to a hashed CSP). Use a span with a literal fallback year instead,
updated by a small inline script when JS runs. document.write is
also deprecated and blocks the parser.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Sy87wxWsc51sBPzwFkS7jW
@tgwab-claude
tgwab-claude enabled auto-merge (squash) September 19, 2026 23:30
@tgwab-claude
tgwab-claude merged commit a675f48 into main Sep 19, 2026
2 checks passed
@tgwab-claude
tgwab-claude deleted the dev/footer-credit-period branch September 19, 2026 23:34
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.

2 participants