Skip to main content

DocumentContext

reexport
interface DocumentContext {
  baseHref: string;
  baseTarget: "_blank"
    | "_self"
    | "_parent"
    | "_top";
  charset: string;
  dir: "ltr" | "rtl";
  lang: string;
  links: Array<Record<string, string>>;
  meta: Array<{
    name: string;
    value: string;
  }>;
  title: string;
}

Metainformation extracted from <head> tag.

Fields#

baseHref#

required
baseHref: string;

baseTarget#

required
baseTarget: "_blank"
  | "_self"
  | "_parent"
  | "_top";

charset#

required
charset: string;

dir#

required
dir: "ltr" | "rtl";

lang#

required
lang: string;

links#

required
links: Array<Record<string, string>>;

meta#

required
meta: Array<{
  name: string;
  value: string;
}>;

title#

required
title: string;