Merge pull request #874 from vector-im/madlittlemods/add-more-html-tags

Add `<header>`, `<footer>`, `<style>` HTML tags to template with
This commit is contained in:
Bruno Windels 2022-10-10 14:26:03 +00:00 committed by GitHub
commit 5bf6a75546
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,10 +102,11 @@ export const SVG_NS: string = "http://www.w3.org/2000/svg";
export const TAG_NAMES = { export const TAG_NAMES = {
[HTML_NS]: [ [HTML_NS]: [
"br", "a", "ol", "ul", "li", "div", "h1", "h2", "h3", "h4", "h5", "h6", "br", "a", "ol", "ul", "li", "div", "h1", "h2", "h3", "h4", "h5", "h6",
"p", "strong", "em", "span", "img", "section", "main", "article", "aside", "del", "blockquote", "p", "strong", "em", "span", "img", "section", "header", "main", "footer",
"article", "aside", "del", "blockquote",
"table", "thead", "tbody", "tr", "th", "td", "hr", "table", "thead", "tbody", "tr", "th", "td", "hr",
"pre", "code", "button", "time", "input", "textarea", "select", "option", "label", "form", "pre", "code", "button", "time", "input", "textarea", "select", "option", "label", "form",
"progress", "output", "video"], "progress", "output", "video", "style"],
[SVG_NS]: ["svg", "g", "path", "circle", "ellipse", "rect", "use"] [SVG_NS]: ["svg", "g", "path", "circle", "ellipse", "rect", "use"]
} as const; } as const;