Skip to content

Commit

Permalink
Update: HTML tag names to following WHATWG spec
Browse files Browse the repository at this point in the history
  • Loading branch information
mysticatea committed Jul 21, 2018
1 parent 7de2b86 commit adbaf4b
Showing 1 changed file with 14 additions and 18 deletions.
32 changes: 14 additions & 18 deletions src/html/util/tag-names.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,20 @@
* HTML tag names.
*/
export const HTML_TAGS = new Set([
"a", "abbr", "acronym", "address", "applet", "area", "article", "aside",
"audio", "b", "base", "basefont", "bdi", "bdo", "bgsound", "big", "blink",
"blockquote", "body", "br", "button", "canvas", "caption", "center", "cite",
"code", "col", "colgroup", "command", "content", "data", "datalist", "dd",
"del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element",
"em", "embed", "fieldset", "figcaption", "figure", "font", "footer", "form",
"frame", "frameset", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header",
"hgroup", "hr", "html", "i", "iframe", "image", "img", "input", "ins",
"isindex", "kbd", "keygen", "label", "legend", "li", "link", "listing",
"main", "map", "mark", "marquee", "math", "menu", "menuitem", "meta",
"meter", "multicol", "nav", "nextid", "nobr", "noembed", "noframes",
"noscript", "object", "ol", "optgroup", "option", "output", "p", "param",
"picture", "plaintext", "pre", "progress", "q", "rb", "rbc", "rp", "rt",
"rtc", "ruby", "s", "samp", "script", "section", "select", "shadow", "slot",
"small", "source", "spacer", "span", "strike", "strong", "style", "sub",
"summary", "sup", "svg", "table", "tbody", "td", "template", "textarea",
"tfoot", "th", "thead", "time", "title", "tr", "track", "tt", "u", "ul",
"var", "video", "wbr", "xmp",
"a", "abbr", "address", "area", "article","aside", "audio", "b", "base",
"bdi", "bdo", "blockquote", "body", "br", "button", "canvas", "caption",
"cite", "code", "col", "colgroup", "data", "datalist", "dd", "del",
"details", "dfn", "dialog", "div", "dl", "document", "dt", "em", "embed",
"fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3",
"h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe",
"img", "input", "ins", "kbd", "label", "legend", "li", "link", "main",
"map", "mark", "marquee", "menu", "meta", "meter", "nav", "noscript",
"object", "ol", "optgroup", "option", "output", "p", "param", "picture",
"pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script",
"section", "select", "slot", "small", "source", "span", "strong", "style",
"sub", "summary", "sup", "table", "tbody", "td", "template", "textarea",
"tfoot", "th", "thead", "time", "title", "tr", "track", "u", "ul", "var",
"video", "wbr"
])

/**
Expand Down

0 comments on commit adbaf4b

Please sign in to comment.