render-allowlist.mjs
195 lines and 0 functions in DrDustinEdwards/prelum, at commit e389900 on 2026-10-24. This file on GitHub.
Functions
None: it only declares types or values.
Imports
It imports no other module of this repo. Imported by render-safe.mjs.
Source
// GENERATED by test/render-safe.test.mjs from the benign corpus (UPDATE_ALLOWLIST=1 npm test). Do not edit by hand.
export const DEFAULT_ALLOWLIST = {
tags: new Set([
"a",
"annotation",
"aside",
"b",
"blockquote",
"caption",
"circle",
"code",
"del",
"details",
"div",
"em",
"figcaption",
"figure",
"g",
"h1",
"h2",
"h3",
"hr",
"img",
"input",
"label",
"li",
"line",
"math",
"mfrac",
"mi",
"mn",
"mo",
"mrow",
"msqrt",
"mstyle",
"msub",
"msubsup",
"msup",
"mtable",
"mtd",
"mtext",
"mtr",
"munderover",
"ol",
"p",
"path",
"pre",
"rect",
"section",
"semantics",
"span",
"strong",
"summary",
"sup",
"svg",
"table",
"tbody",
"td",
"text",
"th",
"thead",
"title",
"tr",
"ul",
]),
attributes: new Set([
"a aria-describedby",
"a aria-label",
"a class",
"a data-footnote-backref",
"a data-footnote-ref",
"a href",
"a id",
"a title",
"annotation encoding",
"aside class",
"aside id",
"b class",
"caption class",
"circle cx",
"circle cy",
"circle data-enarratio-col",
"circle data-enarratio-field",
"circle data-enarratio-key",
"circle data-enarratio-row",
"circle data-enarratio-series",
"circle data-enarratio-value",
"circle data-enarratio-x",
"circle fill",
"circle r",
"circle stroke",
"code class",
"details class",
"div aria-label",
"div class",
"div role",
"div tabindex",
"figure class",
"figure data-enarratio",
"figure data-enarratio-orientation",
"figure data-enarratio-series-field",
"figure data-enarratio-x-scale",
"g aria-hidden",
"g data-enarratio-mark",
"g fill",
"g fill-opacity",
"g font-variant",
"g stroke",
"g stroke-linecap",
"g stroke-linejoin",
"g stroke-opacity",
"g stroke-width",
"g text-anchor",
"g transform",
"h1 id",
"h2 class",
"h2 id",
"h3 id",
"img alt",
"img class",
"img decoding",
"img fetchpriority",
"img height",
"img loading",
"img sizes",
"img src",
"img srcset",
"img style",
"img title",
"img width",
"input checked",
"input disabled",
"input type",
"li class",
"li data-enarratio-series",
"li data-slot",
"li id",
"line x1",
"line x2",
"line y1",
"line y2",
"math display",
"math xmlns",
"mo fence",
"mo stretchy",
"mstyle displaystyle",
"mstyle mathcolor",
"mstyle scriptlevel",
"mtable columnalign",
"mtable columnspacing",
"mtable rowspacing",
"p aria-hidden",
"p class",
"path d",
"path fill",
"path stroke",
"path transform",
"pre class",
"pre data-lang",
"pre style",
"pre tabindex",
"rect data-enarratio-col",
"rect data-enarratio-field",
"rect data-enarratio-key",
"rect data-enarratio-row",
"rect data-enarratio-value",
"rect data-enarratio-x",
"rect fill",
"rect height",
"rect width",
"rect x",
"rect y",
"section class",
"section data-footnotes",
"span aria-hidden",
"span class",
"span style",
"svg aria-label",
"svg fill",
"svg height",
"svg preserveAspectRatio",
"svg role",
"svg text-anchor",
"svg viewBox",
"svg width",
"svg xmlns",
"td align",
"text fill",
"text transform",
"text y",
"th align",
"th scope",
"ul class",
]),
};