page-info
Document provenance disclosure panel showing authorship, trust badges, content history, and AI provenance declarations.
Overview
The <page-info> component is a disclosure panel for document provenance. Its trust bar summary shows author, date, and a trust badge at a glance. Clicking expands a detail panel with authorship, history, and AI provenance information.
Without JavaScript, the <details>/<summary> structure provides native expand/collapse behavior. With JS, the component adds relative time rendering and reading time computation.
Auto Mode
When the CMS cannot easily render the full static markup, auto makes the component self-contained. It reads provenance information from <meta> tags in the page <head> and renders the panel automatically.
Required Meta Tags
AI Provenance Vocabulary
The content-provenance meta tag uses a controlled vocabulary, ordered from most human-controlled to least:
| Value | Display Label |
|---|---|
human | Human written |
human-ai-assisted | Human-written, AI-assisted |
ai-human-edited | AI draft, human edited |
ai-human-reviewed | AI-generated, human-reviewed |
ai-generated | AI-generated |
synthesized | Synthesized from sources |
translated | Translated |
migrated | Migrated content |
Trust Tiers
The badge data-trust attribute indicates the verification level. Currently, only declared is active (cryptographic verification is planned).
| Tier | data-trust | Badge Style | Meaning |
|---|---|---|---|
| 0 | undeclared | Neutral | No provenance metadata |
| 1 | declared | Warning | Provenance claimed, not verified |
| 2 | domain-anchored | Info | Public key reachable at author's domain |
| 3 | verified | Success | DOM content matches cryptographic signature |
| — | failed | Error | Signature present but content doesn't match |
Attributes
| Attribute | Values | Default | Description |
|---|---|---|---|
auto |
Boolean | — | Render from <meta> tags instead of light DOM |
og-preview |
Boolean | — | Show Open Graph social preview card (planned) |
Events
| Event | Detail | Description |
|---|---|---|
page-info:verified |
{ status: string, tier: number } |
Fired when trust assessment completes. Bubbles. |
Relationship to <page-meta>
<page-meta> is a simpler, composable sub-pattern focused on metadata display and JSON-LD. <page-info> is the full disclosure panel with trust bar, author details, and provenance sections. They can be used independently or together.
Accessibility
<details>/<summary>provides native expand/collapse without JavaScript- Trust badges include
aria-labelwith the full provenance description - Separator dots use
aria-hidden="true" - Section headings provide landmarks within the expanded panel
- Relative time text replaces the
<time>content but thedatetimeattribute preserves the machine-readable date