// NOTE: This file is generated by the templates/template.rb script and should not // be modified manually. See templates/javascript/packages/core/src/foreign-content-elements.ts.erb export type ForeignContentKind = "raw_text" | "rcdata" export interface ForeignContentElement { name: string kind: ForeignContentKind endTag: boolean htmlOnly: boolean } export const FOREIGN_CONTENT_ELEMENTS: readonly ForeignContentElement[] = [ { name: "script", kind: "raw_text", endTag: true, htmlOnly: false }, { name: "style", kind: "raw_text", endTag: true, htmlOnly: false }, { name: "iframe", kind: "raw_text", endTag: true, htmlOnly: false }, { name: "xmp", kind: "raw_text", endTag: true, htmlOnly: false }, { name: "noembed", kind: "raw_text", endTag: true, htmlOnly: false }, { name: "noframes", kind: "raw_text", endTag: true, htmlOnly: false }, { name: "plaintext", kind: "raw_text", endTag: false, htmlOnly: true }, { name: "textarea", kind: "rcdata", endTag: true, htmlOnly: false }, { name: "title", kind: "rcdata", endTag: true, htmlOnly: true }, ] export const RAW_TEXT_ELEMENTS: ReadonlySet = new Set(["script", "style", "iframe", "xmp", "noembed", "noframes", "plaintext"]) export const RCDATA_ELEMENTS: ReadonlySet = new Set(["textarea", "title"])