diff --git a/packages/happy-dom/src/config/HTMLElementConfig.ts b/packages/happy-dom/src/config/HTMLElementConfig.ts
index b336655f..dd261788 100644
--- a/packages/happy-dom/src/config/HTMLElementConfig.ts
+++ b/packages/happy-dom/src/config/HTMLElementConfig.ts
@@ -1,5 +1,4 @@
import HTMLElementConfigContentModelEnum from './HTMLElementConfigContentModelEnum.js';
-import HTMLElementConfigContextConstraintEnum from './HTMLElementConfigContextConstraintEnum.js';
/**
* @see https://html.spec.whatwg.org/multipage/indices.html
@@ -9,578 +8,463 @@ export default <
[key: string]: {
className: string;
contentModel: HTMLElementConfigContentModelEnum;
- contextConstraint: HTMLElementConfigContextConstraintEnum;
};
}
>{
a: {
className: 'HTMLAnchorElement',
- contentModel: HTMLElementConfigContentModelEnum.noSelfDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.noSelfDescendants
},
abbr: {
className: 'HTMLElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
address: {
className: 'HTMLElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
area: {
className: 'HTMLAreaElement',
- contentModel: HTMLElementConfigContentModelEnum.noDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.noDescendants
},
article: {
className: 'HTMLElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
aside: {
className: 'HTMLElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
audio: {
className: 'HTMLAudioElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
b: {
className: 'HTMLElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
base: {
className: 'HTMLBaseElement',
- contentModel: HTMLElementConfigContentModelEnum.noDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.noDescendants
},
bdi: {
className: 'HTMLElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
bdo: {
className: 'HTMLElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
body: {
className: 'HTMLBodyElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.secondElementOfHTMLHtmlElement
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
template: {
className: 'HTMLTemplateElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
form: {
className: 'HTMLFormElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
input: {
className: 'HTMLInputElement',
- contentModel: HTMLElementConfigContentModelEnum.noDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.noDescendants
},
textarea: {
className: 'HTMLTextAreaElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
script: {
className: 'HTMLScriptElement',
- contentModel: HTMLElementConfigContentModelEnum.rawText,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.rawText
},
img: {
className: 'HTMLImageElement',
- contentModel: HTMLElementConfigContentModelEnum.noDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.noDescendants
},
link: {
className: 'HTMLLinkElement',
- contentModel: HTMLElementConfigContentModelEnum.noDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.noDescendants
},
style: {
className: 'HTMLStyleElement',
- contentModel: HTMLElementConfigContentModelEnum.rawText,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.rawText
},
label: {
className: 'HTMLLabelElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
slot: {
className: 'HTMLSlotElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
meta: {
className: 'HTMLMetaElement',
- contentModel: HTMLElementConfigContentModelEnum.noDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.noDescendants
},
blockquote: {
className: 'HTMLQuoteElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
br: {
className: 'HTMLBRElement',
- contentModel: HTMLElementConfigContentModelEnum.noDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.noDescendants
},
button: {
className: 'HTMLButtonElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
canvas: {
className: 'HTMLCanvasElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
caption: {
className: 'HTMLTableCaptionElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
cite: {
className: 'HTMLElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
code: {
className: 'HTMLElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
col: {
className: 'HTMLTableColElement',
- contentModel: HTMLElementConfigContentModelEnum.noDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.noDescendants
},
colgroup: {
className: 'HTMLTableColElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
data: {
className: 'HTMLDataElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
datalist: {
className: 'HTMLDataListElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
dd: {
className: 'HTMLElement',
- contentModel: HTMLElementConfigContentModelEnum.noFirstLevelSelfDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.noFirstLevelSelfDescendants
},
del: {
className: 'HTMLModElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
details: {
className: 'HTMLDetailsElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
dfn: {
className: 'HTMLElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
dialog: {
className: 'HTMLDialogElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
div: {
className: 'HTMLDivElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
dl: {
className: 'HTMLDListElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
dt: {
className: 'HTMLElement',
- contentModel: HTMLElementConfigContentModelEnum.noFirstLevelSelfDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.noFirstLevelSelfDescendants
},
em: {
className: 'HTMLElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
embed: {
className: 'HTMLEmbedElement',
- contentModel: HTMLElementConfigContentModelEnum.noDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.noDescendants
},
fieldset: {
className: 'HTMLFieldSetElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
figcaption: {
className: 'HTMLElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
figure: {
className: 'HTMLElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
footer: {
className: 'HTMLElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
h1: {
className: 'HTMLHeadingElement',
- contentModel: HTMLElementConfigContentModelEnum.noFirstLevelSelfDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.noFirstLevelSelfDescendants
},
h2: {
className: 'HTMLHeadingElement',
- contentModel: HTMLElementConfigContentModelEnum.noFirstLevelSelfDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.noFirstLevelSelfDescendants
},
h3: {
className: 'HTMLHeadingElement',
- contentModel: HTMLElementConfigContentModelEnum.noFirstLevelSelfDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.noFirstLevelSelfDescendants
},
h4: {
className: 'HTMLHeadingElement',
- contentModel: HTMLElementConfigContentModelEnum.noFirstLevelSelfDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.noFirstLevelSelfDescendants
},
h5: {
className: 'HTMLHeadingElement',
- contentModel: HTMLElementConfigContentModelEnum.noFirstLevelSelfDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.noFirstLevelSelfDescendants
},
h6: {
className: 'HTMLHeadingElement',
- contentModel: HTMLElementConfigContentModelEnum.noFirstLevelSelfDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.noFirstLevelSelfDescendants
},
head: {
className: 'HTMLHeadElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.firstElementOfHTMLHtmlElement
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
header: {
className: 'HTMLElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
hgroup: {
className: 'HTMLElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
hr: {
className: 'HTMLHRElement',
- contentModel: HTMLElementConfigContentModelEnum.noDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.noDescendants
},
html: {
className: 'HTMLHtmlElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.firstElementOfDocument
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
i: {
className: 'HTMLElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
iframe: {
className: 'HTMLIFrameElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
ins: {
className: 'HTMLModElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
kbd: {
className: 'HTMLElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
legend: {
className: 'HTMLLegendElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
li: {
className: 'HTMLLIElement',
- contentModel: HTMLElementConfigContentModelEnum.noFirstLevelSelfDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.noFirstLevelSelfDescendants
},
main: {
className: 'HTMLElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
map: {
className: 'HTMLMapElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
mark: {
className: 'HTMLElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
menu: {
className: 'HTMLMenuElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
meter: {
className: 'HTMLMeterElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
nav: {
className: 'HTMLElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
noscript: {
className: 'HTMLElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
object: {
className: 'HTMLObjectElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
ol: {
className: 'HTMLOListElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
optgroup: {
className: 'HTMLOptGroupElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
option: {
className: 'HTMLOptionElement',
- contentModel: HTMLElementConfigContentModelEnum.noFirstLevelSelfDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.noFirstLevelSelfDescendants
},
output: {
className: 'HTMLOutputElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
p: {
className: 'HTMLParagraphElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
param: {
className: 'HTMLParamElement',
- contentModel: HTMLElementConfigContentModelEnum.noDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.noDescendants
},
picture: {
className: 'HTMLPictureElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
pre: {
className: 'HTMLPreElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
progress: {
className: 'HTMLProgressElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
q: {
className: 'HTMLQuoteElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
rb: {
className: 'HTMLElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
rp: {
className: 'HTMLElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
rt: {
className: 'HTMLElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
rtc: {
className: 'HTMLElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
ruby: {
className: 'HTMLElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
s: {
className: 'HTMLElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
samp: {
className: 'HTMLElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
section: {
className: 'HTMLElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
select: {
className: 'HTMLSelectElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
small: {
className: 'HTMLElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
source: {
className: 'HTMLSourceElement',
- contentModel: HTMLElementConfigContentModelEnum.noDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.noDescendants
},
span: {
className: 'HTMLSpanElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
strong: {
className: 'HTMLElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
sub: {
className: 'HTMLElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
summary: {
className: 'HTMLElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
sup: {
className: 'HTMLElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
table: {
className: 'HTMLTableElement',
- contentModel: HTMLElementConfigContentModelEnum.noFirstLevelSelfDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.noFirstLevelSelfDescendants
},
tbody: {
className: 'HTMLTableSectionElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
td: {
className: 'HTMLTableCellElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
tfoot: {
className: 'HTMLTableSectionElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
th: {
className: 'HTMLTableCellElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
thead: {
className: 'HTMLTableSectionElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
time: {
className: 'HTMLTimeElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
title: {
className: 'HTMLTitleElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
tr: {
className: 'HTMLTableRowElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
track: {
className: 'HTMLTrackElement',
- contentModel: HTMLElementConfigContentModelEnum.noDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.noDescendants
},
u: {
className: 'HTMLElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
ul: {
className: 'HTMLUListElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
var: {
className: 'HTMLElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
video: {
className: 'HTMLVideoElement',
- contentModel: HTMLElementConfigContentModelEnum.anyDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.anyDescendants
},
wbr: {
className: 'HTMLElement',
- contentModel: HTMLElementConfigContentModelEnum.noDescendants,
- contextConstraint: HTMLElementConfigContextConstraintEnum.none
+ contentModel: HTMLElementConfigContentModelEnum.noDescendants
}
};
diff --git a/packages/happy-dom/src/config/HTMLElementConfigContextConstraintEnum.ts b/packages/happy-dom/src/config/HTMLElementConfigContextConstraintEnum.ts
deleted file mode 100644
index a5e05873..00000000
--- a/packages/happy-dom/src/config/HTMLElementConfigContextConstraintEnum.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-enum HTMLElementConfigContextConstraintEnum {
- none = 'none',
- secondElementOfHTMLHtmlElement = 'secondElementOfHTMLHtmlElement',
- firstElementOfHTMLHtmlElement = 'firstElementOfHTMLHtmlElement',
- firstElementOfDocument = 'firstElementOfDocument'
-}
-
-export default HTMLElementConfigContextConstraintEnum;