UNPKG

html-spec-tags

Version:

All HTML tags supported by the current spec. With types!

476 lines (475 loc) 11.7 kB
/** * A string literal type that only matches the HTML spec tag names. * * @category Tag */ export type HtmlSpecTagName = keyof typeof htmlSpecConstructorsByTagName; /** * All current HTML spec tag names mapped to their respective element constructors. * * Generated from `HTMLElementTagNameMap` in `typescript/lib/lib.dom.d.ts`: * https://raw.githubusercontent.com/microsoft/TypeScript/main/src/lib/dom.generated.d.ts * * @category Tag */ export declare const htmlSpecConstructorsByTagName: { readonly a: { new (): HTMLAnchorElement; prototype: HTMLAnchorElement; }; readonly abbr: { new (): HTMLElement; prototype: HTMLElement; }; readonly address: { new (): HTMLElement; prototype: HTMLElement; }; readonly area: { new (): HTMLAreaElement; prototype: HTMLAreaElement; }; readonly article: { new (): HTMLElement; prototype: HTMLElement; }; readonly aside: { new (): HTMLElement; prototype: HTMLElement; }; readonly audio: { new (): HTMLAudioElement; prototype: HTMLAudioElement; }; readonly b: { new (): HTMLElement; prototype: HTMLElement; }; readonly base: { new (): HTMLBaseElement; prototype: HTMLBaseElement; }; readonly bdi: { new (): HTMLElement; prototype: HTMLElement; }; readonly bdo: { new (): HTMLElement; prototype: HTMLElement; }; readonly blockquote: { new (): HTMLQuoteElement; prototype: HTMLQuoteElement; }; readonly body: { new (): HTMLBodyElement; prototype: HTMLBodyElement; }; readonly br: { new (): HTMLBRElement; prototype: HTMLBRElement; }; readonly button: { new (): HTMLButtonElement; prototype: HTMLButtonElement; }; readonly canvas: { new (): HTMLCanvasElement; prototype: HTMLCanvasElement; }; readonly caption: { new (): HTMLTableCaptionElement; prototype: HTMLTableCaptionElement; }; readonly cite: { new (): HTMLElement; prototype: HTMLElement; }; readonly code: { new (): HTMLElement; prototype: HTMLElement; }; readonly col: { new (): HTMLTableColElement; prototype: HTMLTableColElement; }; readonly colgroup: { new (): HTMLTableColElement; prototype: HTMLTableColElement; }; readonly data: { new (): HTMLDataElement; prototype: HTMLDataElement; }; readonly datalist: { new (): HTMLDataListElement; prototype: HTMLDataListElement; }; readonly dd: { new (): HTMLElement; prototype: HTMLElement; }; readonly del: { new (): HTMLModElement; prototype: HTMLModElement; }; readonly details: { new (): HTMLDetailsElement; prototype: HTMLDetailsElement; }; readonly dfn: { new (): HTMLElement; prototype: HTMLElement; }; readonly dialog: { new (): HTMLDialogElement; prototype: HTMLDialogElement; }; readonly div: { new (): HTMLDivElement; prototype: HTMLDivElement; }; readonly dl: { new (): HTMLDListElement; prototype: HTMLDListElement; }; readonly dt: { new (): HTMLElement; prototype: HTMLElement; }; readonly em: { new (): HTMLElement; prototype: HTMLElement; }; readonly embed: { new (): HTMLEmbedElement; prototype: HTMLEmbedElement; }; readonly fieldset: { new (): HTMLFieldSetElement; prototype: HTMLFieldSetElement; }; readonly figcaption: { new (): HTMLElement; prototype: HTMLElement; }; readonly figure: { new (): HTMLElement; prototype: HTMLElement; }; readonly footer: { new (): HTMLElement; prototype: HTMLElement; }; readonly form: { new (): HTMLFormElement; prototype: HTMLFormElement; }; readonly h1: { new (): HTMLHeadingElement; prototype: HTMLHeadingElement; }; readonly h2: { new (): HTMLHeadingElement; prototype: HTMLHeadingElement; }; readonly h3: { new (): HTMLHeadingElement; prototype: HTMLHeadingElement; }; readonly h4: { new (): HTMLHeadingElement; prototype: HTMLHeadingElement; }; readonly h5: { new (): HTMLHeadingElement; prototype: HTMLHeadingElement; }; readonly h6: { new (): HTMLHeadingElement; prototype: HTMLHeadingElement; }; readonly head: { new (): HTMLHeadElement; prototype: HTMLHeadElement; }; readonly header: { new (): HTMLElement; prototype: HTMLElement; }; readonly hgroup: { new (): HTMLElement; prototype: HTMLElement; }; readonly hr: { new (): HTMLHRElement; prototype: HTMLHRElement; }; readonly html: { new (): HTMLHtmlElement; prototype: HTMLHtmlElement; }; readonly i: { new (): HTMLElement; prototype: HTMLElement; }; readonly iframe: { new (): HTMLIFrameElement; prototype: HTMLIFrameElement; }; readonly img: { new (): HTMLImageElement; prototype: HTMLImageElement; }; readonly input: { new (): HTMLInputElement; prototype: HTMLInputElement; }; readonly ins: { new (): HTMLModElement; prototype: HTMLModElement; }; readonly kbd: { new (): HTMLElement; prototype: HTMLElement; }; readonly label: { new (): HTMLLabelElement; prototype: HTMLLabelElement; }; readonly legend: { new (): HTMLLegendElement; prototype: HTMLLegendElement; }; readonly li: { new (): HTMLLIElement; prototype: HTMLLIElement; }; readonly link: { new (): HTMLLinkElement; prototype: HTMLLinkElement; }; readonly main: { new (): HTMLElement; prototype: HTMLElement; }; readonly map: { new (): HTMLMapElement; prototype: HTMLMapElement; }; readonly mark: { new (): HTMLElement; prototype: HTMLElement; }; readonly menu: { new (): HTMLMenuElement; prototype: HTMLMenuElement; }; readonly meta: { new (): HTMLMetaElement; prototype: HTMLMetaElement; }; readonly meter: { new (): HTMLMeterElement; prototype: HTMLMeterElement; }; readonly nav: { new (): HTMLElement; prototype: HTMLElement; }; readonly noscript: { new (): HTMLElement; prototype: HTMLElement; }; readonly object: { new (): HTMLObjectElement; prototype: HTMLObjectElement; }; readonly ol: { new (): HTMLOListElement; prototype: HTMLOListElement; }; readonly optgroup: { new (): HTMLOptGroupElement; prototype: HTMLOptGroupElement; }; readonly option: { new (): HTMLOptionElement; prototype: HTMLOptionElement; }; readonly output: { new (): HTMLOutputElement; prototype: HTMLOutputElement; }; readonly p: { new (): HTMLParagraphElement; prototype: HTMLParagraphElement; }; readonly picture: { new (): HTMLPictureElement; prototype: HTMLPictureElement; }; readonly pre: { new (): HTMLPreElement; prototype: HTMLPreElement; }; readonly progress: { new (): HTMLProgressElement; prototype: HTMLProgressElement; }; readonly q: { new (): HTMLQuoteElement; prototype: HTMLQuoteElement; }; readonly rp: { new (): HTMLElement; prototype: HTMLElement; }; readonly rt: { new (): HTMLElement; prototype: HTMLElement; }; readonly ruby: { new (): HTMLElement; prototype: HTMLElement; }; readonly s: { new (): HTMLElement; prototype: HTMLElement; }; readonly samp: { new (): HTMLElement; prototype: HTMLElement; }; readonly script: { new (): HTMLScriptElement; prototype: HTMLScriptElement; supports(type: string): boolean; }; readonly search: { new (): HTMLElement; prototype: HTMLElement; }; readonly section: { new (): HTMLElement; prototype: HTMLElement; }; readonly select: { new (): HTMLSelectElement; prototype: HTMLSelectElement; }; readonly slot: { new (): HTMLSlotElement; prototype: HTMLSlotElement; }; readonly small: { new (): HTMLElement; prototype: HTMLElement; }; readonly source: { new (): HTMLSourceElement; prototype: HTMLSourceElement; }; readonly span: { new (): HTMLSpanElement; prototype: HTMLSpanElement; }; readonly strong: { new (): HTMLElement; prototype: HTMLElement; }; readonly style: { new (): HTMLStyleElement; prototype: HTMLStyleElement; }; readonly sub: { new (): HTMLElement; prototype: HTMLElement; }; readonly summary: { new (): HTMLElement; prototype: HTMLElement; }; readonly sup: { new (): HTMLElement; prototype: HTMLElement; }; readonly table: { new (): HTMLTableElement; prototype: HTMLTableElement; }; readonly tbody: { new (): HTMLTableSectionElement; prototype: HTMLTableSectionElement; }; readonly td: { new (): HTMLTableCellElement; prototype: HTMLTableCellElement; }; readonly template: { new (): HTMLTemplateElement; prototype: HTMLTemplateElement; }; readonly textarea: { new (): HTMLTextAreaElement; prototype: HTMLTextAreaElement; }; readonly tfoot: { new (): HTMLTableSectionElement; prototype: HTMLTableSectionElement; }; readonly th: { new (): HTMLTableCellElement; prototype: HTMLTableCellElement; }; readonly thead: { new (): HTMLTableSectionElement; prototype: HTMLTableSectionElement; }; readonly time: { new (): HTMLTimeElement; prototype: HTMLTimeElement; }; readonly title: { new (): HTMLTitleElement; prototype: HTMLTitleElement; }; readonly tr: { new (): HTMLTableRowElement; prototype: HTMLTableRowElement; }; readonly track: { new (): HTMLTrackElement; prototype: HTMLTrackElement; readonly NONE: 0; readonly LOADING: 1; readonly LOADED: 2; readonly ERROR: 3; }; readonly u: { new (): HTMLElement; prototype: HTMLElement; }; readonly ul: { new (): HTMLUListElement; prototype: HTMLUListElement; }; readonly var: { new (): HTMLElement; prototype: HTMLElement; }; readonly video: { new (): HTMLVideoElement; prototype: HTMLVideoElement; }; readonly wbr: { new (): HTMLElement; prototype: HTMLElement; }; }; /** * All possible HTML spec tag names within a single array. * * @category Tag */ export declare const allHtmlSpecTagNames: ReadonlyArray<HtmlSpecTagName>;