Skip to content

Commit adbaf4b

Browse files
committed
Update: HTML tag names to following WHATWG spec
1 parent 7de2b86 commit adbaf4b

File tree

1 file changed

+14
-18
lines changed

1 file changed

+14
-18
lines changed

Diff for: src/html/util/tag-names.ts

+14-18
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,20 @@
88
* HTML tag names.
99
*/
1010
export const HTML_TAGS = new Set([
11-
"a", "abbr", "acronym", "address", "applet", "area", "article", "aside",
12-
"audio", "b", "base", "basefont", "bdi", "bdo", "bgsound", "big", "blink",
13-
"blockquote", "body", "br", "button", "canvas", "caption", "center", "cite",
14-
"code", "col", "colgroup", "command", "content", "data", "datalist", "dd",
15-
"del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element",
16-
"em", "embed", "fieldset", "figcaption", "figure", "font", "footer", "form",
17-
"frame", "frameset", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header",
18-
"hgroup", "hr", "html", "i", "iframe", "image", "img", "input", "ins",
19-
"isindex", "kbd", "keygen", "label", "legend", "li", "link", "listing",
20-
"main", "map", "mark", "marquee", "math", "menu", "menuitem", "meta",
21-
"meter", "multicol", "nav", "nextid", "nobr", "noembed", "noframes",
22-
"noscript", "object", "ol", "optgroup", "option", "output", "p", "param",
23-
"picture", "plaintext", "pre", "progress", "q", "rb", "rbc", "rp", "rt",
24-
"rtc", "ruby", "s", "samp", "script", "section", "select", "shadow", "slot",
25-
"small", "source", "spacer", "span", "strike", "strong", "style", "sub",
26-
"summary", "sup", "svg", "table", "tbody", "td", "template", "textarea",
27-
"tfoot", "th", "thead", "time", "title", "tr", "track", "tt", "u", "ul",
28-
"var", "video", "wbr", "xmp",
11+
"a", "abbr", "address", "area", "article","aside", "audio", "b", "base",
12+
"bdi", "bdo", "blockquote", "body", "br", "button", "canvas", "caption",
13+
"cite", "code", "col", "colgroup", "data", "datalist", "dd", "del",
14+
"details", "dfn", "dialog", "div", "dl", "document", "dt", "em", "embed",
15+
"fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3",
16+
"h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe",
17+
"img", "input", "ins", "kbd", "label", "legend", "li", "link", "main",
18+
"map", "mark", "marquee", "menu", "meta", "meter", "nav", "noscript",
19+
"object", "ol", "optgroup", "option", "output", "p", "param", "picture",
20+
"pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script",
21+
"section", "select", "slot", "small", "source", "span", "strong", "style",
22+
"sub", "summary", "sup", "table", "tbody", "td", "template", "textarea",
23+
"tfoot", "th", "thead", "time", "title", "tr", "track", "u", "ul", "var",
24+
"video", "wbr"
2925
])
3026

3127
/**

0 commit comments

Comments
 (0)