[]previous and next page

NormalizedTag

A validated tag: lower-case attribute names, the text it carries, and its identity.

A validated tag: lower-case attribute names, the text it carries, and its identity. Produced only by normalizeTag, so the registry and the DOM sink never see unchecked input.

Import#

ts
import type { NormalizedTag } from "@shadow-js/web/server";

Signature#

ts
interface NormalizedTag {
  readonly tag: HeadTagName;
  readonly attributes: ReadonlyArray<readonly [string, string]>;
  readonly text: string | undefined;
  readonly key: string | undefined;
  /** Identity that replaces earlier registrations; undefined for append-only tags. */
  readonly identity: string | undefined;
}

Members#

Name Type Description
tag readonly tag: HeadTagName
attributes readonly attributes: ReadonlyArray<readonly [string, string]>
text readonly text: string | undefined
key readonly key: string | undefined
identity readonly identity: string | undefined Identity that replaces earlier registrations; undefined for append-only tags.