happy-dom 13.8.1 → 13.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of happy-dom might be problematic. Click here for more details.
- package/cjs/config/HTMLElementConfig.cjs +714 -0
- package/cjs/config/HTMLElementConfig.cjs.map +1 -0
- package/cjs/config/HTMLElementConfig.d.ts +9 -0
- package/cjs/config/HTMLElementConfig.d.ts.map +1 -0
- package/cjs/config/HTMLElementConfigContentModelEnum.cjs +12 -0
- package/cjs/config/HTMLElementConfigContentModelEnum.cjs.map +1 -0
- package/cjs/config/HTMLElementConfigContentModelEnum.d.ts +9 -0
- package/cjs/config/HTMLElementConfigContentModelEnum.d.ts.map +1 -0
- package/cjs/config/IHTMLElementConfigEntity.cjs +3 -0
- package/cjs/config/IHTMLElementConfigEntity.cjs.map +1 -0
- package/cjs/config/IHTMLElementConfigEntity.d.ts +8 -0
- package/cjs/config/IHTMLElementConfigEntity.d.ts.map +1 -0
- package/cjs/event/events/IKeyboardEventInit.d.ts +4 -0
- package/cjs/event/events/IKeyboardEventInit.d.ts.map +1 -1
- package/cjs/event/events/KeyboardEvent.cjs +1 -0
- package/cjs/event/events/KeyboardEvent.cjs.map +1 -1
- package/cjs/event/events/KeyboardEvent.d.ts +4 -0
- package/cjs/event/events/KeyboardEvent.d.ts.map +1 -1
- package/cjs/nodes/document/Document.cjs +4 -2
- package/cjs/nodes/document/Document.cjs.map +1 -1
- package/cjs/nodes/document/Document.d.ts.map +1 -1
- package/cjs/version.cjs +1 -1
- package/cjs/xml-parser/XMLParser.cjs +33 -31
- package/cjs/xml-parser/XMLParser.cjs.map +1 -1
- package/cjs/xml-parser/XMLParser.d.ts +2 -0
- package/cjs/xml-parser/XMLParser.d.ts.map +1 -1
- package/cjs/xml-serializer/XMLSerializer.cjs +4 -2
- package/cjs/xml-serializer/XMLSerializer.cjs.map +1 -1
- package/cjs/xml-serializer/XMLSerializer.d.ts.map +1 -1
- package/lib/config/HTMLElementConfig.d.ts +9 -0
- package/lib/config/HTMLElementConfig.d.ts.map +1 -0
- package/lib/config/HTMLElementConfig.js +709 -0
- package/lib/config/HTMLElementConfig.js.map +1 -0
- package/lib/config/HTMLElementConfigContentModelEnum.d.ts +9 -0
- package/lib/config/HTMLElementConfigContentModelEnum.d.ts.map +1 -0
- package/lib/config/HTMLElementConfigContentModelEnum.js +10 -0
- package/lib/config/HTMLElementConfigContentModelEnum.js.map +1 -0
- package/lib/config/IHTMLElementConfigEntity.d.ts +8 -0
- package/lib/config/IHTMLElementConfigEntity.d.ts.map +1 -0
- package/lib/config/IHTMLElementConfigEntity.js +2 -0
- package/lib/config/IHTMLElementConfigEntity.js.map +1 -0
- package/lib/event/events/IKeyboardEventInit.d.ts +4 -0
- package/lib/event/events/IKeyboardEventInit.d.ts.map +1 -1
- package/lib/event/events/KeyboardEvent.d.ts +4 -0
- package/lib/event/events/KeyboardEvent.d.ts.map +1 -1
- package/lib/event/events/KeyboardEvent.js +1 -0
- package/lib/event/events/KeyboardEvent.js.map +1 -1
- package/lib/nodes/document/Document.d.ts.map +1 -1
- package/lib/nodes/document/Document.js +4 -2
- package/lib/nodes/document/Document.js.map +1 -1
- package/lib/version.js +1 -1
- package/lib/xml-parser/XMLParser.d.ts +2 -0
- package/lib/xml-parser/XMLParser.d.ts.map +1 -1
- package/lib/xml-parser/XMLParser.js +33 -31
- package/lib/xml-parser/XMLParser.js.map +1 -1
- package/lib/xml-serializer/XMLSerializer.d.ts.map +1 -1
- package/lib/xml-serializer/XMLSerializer.js +4 -2
- package/lib/xml-serializer/XMLSerializer.js.map +1 -1
- package/package.json +1 -1
- package/src/config/HTMLElementConfig.ts +710 -0
- package/src/config/HTMLElementConfigContentModelEnum.ts +9 -0
- package/src/config/IHTMLElementConfigEntity.ts +8 -0
- package/src/event/events/IKeyboardEventInit.ts +5 -0
- package/src/event/events/KeyboardEvent.ts +6 -0
- package/src/nodes/document/Document.ts +4 -2
- package/src/xml-parser/XMLParser.ts +38 -39
- package/src/xml-serializer/XMLSerializer.ts +4 -2
- package/cjs/config/HTMLElementLocalNameToClass.cjs +0 -122
- package/cjs/config/HTMLElementLocalNameToClass.cjs.map +0 -1
- package/cjs/config/HTMLElementLocalNameToClass.d.ts +0 -5
- package/cjs/config/HTMLElementLocalNameToClass.d.ts.map +0 -1
- package/cjs/config/HTMLElementPlainText.cjs +0 -7
- package/cjs/config/HTMLElementPlainText.cjs.map +0 -1
- package/cjs/config/HTMLElementPlainText.d.ts +0 -6
- package/cjs/config/HTMLElementPlainText.d.ts.map +0 -1
- package/cjs/config/HTMLElementUnnestable.cjs +0 -21
- package/cjs/config/HTMLElementUnnestable.cjs.map +0 -1
- package/cjs/config/HTMLElementUnnestable.d.ts +0 -20
- package/cjs/config/HTMLElementUnnestable.d.ts.map +0 -1
- package/cjs/config/HTMLElementVoid.cjs +0 -19
- package/cjs/config/HTMLElementVoid.cjs.map +0 -1
- package/cjs/config/HTMLElementVoid.d.ts +0 -18
- package/cjs/config/HTMLElementVoid.d.ts.map +0 -1
- package/lib/config/HTMLElementLocalNameToClass.d.ts +0 -5
- package/lib/config/HTMLElementLocalNameToClass.d.ts.map +0 -1
- package/lib/config/HTMLElementLocalNameToClass.js +0 -120
- package/lib/config/HTMLElementLocalNameToClass.js.map +0 -1
- package/lib/config/HTMLElementPlainText.d.ts +0 -6
- package/lib/config/HTMLElementPlainText.d.ts.map +0 -1
- package/lib/config/HTMLElementPlainText.js +0 -5
- package/lib/config/HTMLElementPlainText.js.map +0 -1
- package/lib/config/HTMLElementUnnestable.d.ts +0 -20
- package/lib/config/HTMLElementUnnestable.d.ts.map +0 -1
- package/lib/config/HTMLElementUnnestable.js +0 -19
- package/lib/config/HTMLElementUnnestable.js.map +0 -1
- package/lib/config/HTMLElementVoid.d.ts +0 -18
- package/lib/config/HTMLElementVoid.d.ts.map +0 -1
- package/lib/config/HTMLElementVoid.js +0 -17
- package/lib/config/HTMLElementVoid.js.map +0 -1
- package/src/config/HTMLElementLocalNameToClass.ts +0 -119
- package/src/config/HTMLElementPlainText.ts +0 -4
- package/src/config/HTMLElementUnnestable.ts +0 -18
- package/src/config/HTMLElementVoid.ts +0 -16
@@ -19,6 +19,11 @@ export default class KeyboardEvent extends UIEvent {
|
|
19
19
|
public readonly repeat: boolean;
|
20
20
|
public readonly shiftKey: boolean;
|
21
21
|
|
22
|
+
/**
|
23
|
+
* @deprecated
|
24
|
+
*/
|
25
|
+
public readonly keyCode: number;
|
26
|
+
|
22
27
|
/**
|
23
28
|
* Constructor.
|
24
29
|
*
|
@@ -37,5 +42,6 @@ export default class KeyboardEvent extends UIEvent {
|
|
37
42
|
this.metaKey = eventInit?.metaKey ?? false;
|
38
43
|
this.repeat = eventInit?.repeat ?? false;
|
39
44
|
this.shiftKey = eventInit?.shiftKey ?? false;
|
45
|
+
this.keyCode = eventInit?.keyCode ?? 0;
|
40
46
|
}
|
41
47
|
}
|
@@ -8,7 +8,6 @@ import DocumentFragment from '../document-fragment/DocumentFragment.js';
|
|
8
8
|
import XMLParser from '../../xml-parser/XMLParser.js';
|
9
9
|
import Event from '../../event/Event.js';
|
10
10
|
import DOMImplementation from '../../dom-implementation/DOMImplementation.js';
|
11
|
-
import HTMLElementLocalNameToClass from '../../config/HTMLElementLocalNameToClass.js';
|
12
11
|
import INodeFilter from '../../tree-walker/INodeFilter.js';
|
13
12
|
import NamespaceURI from '../../config/NamespaceURI.js';
|
14
13
|
import DocumentType from '../document-type/DocumentType.js';
|
@@ -51,6 +50,7 @@ import ISVGElementTagNameMap from '../../config/ISVGElementTagNameMap.js';
|
|
51
50
|
import ISVGElement from '../svg-element/ISVGElement.js';
|
52
51
|
import IHTMLFormElement from '../html-form-element/IHTMLFormElement.js';
|
53
52
|
import IHTMLAnchorElement from '../html-anchor-element/IHTMLAnchorElement.js';
|
53
|
+
import HTMLElementConfig from '../../config/HTMLElementConfig.js';
|
54
54
|
|
55
55
|
const PROCESSING_INSTRUCTION_TARGET_REGEXP = /^[a-z][a-z0-9-]+$/;
|
56
56
|
|
@@ -1131,7 +1131,9 @@ export default class Document extends Node implements IDocument {
|
|
1131
1131
|
}
|
1132
1132
|
|
1133
1133
|
const localName = qualifiedName.toLowerCase();
|
1134
|
-
const elementClass =
|
1134
|
+
const elementClass = HTMLElementConfig[localName]
|
1135
|
+
? this[PropertySymbol.ownerWindow][HTMLElementConfig[localName].className]
|
1136
|
+
: null;
|
1135
1137
|
|
1136
1138
|
// Known HTML element
|
1137
1139
|
if (elementClass) {
|
@@ -1,16 +1,15 @@
|
|
1
1
|
import IDocument from '../nodes/document/IDocument.js';
|
2
2
|
import * as PropertySymbol from '../PropertySymbol.js';
|
3
|
-
import HTMLElementVoid from '../config/HTMLElementVoid.js';
|
4
|
-
import HTMLElementUnnestable from '../config/HTMLElementUnnestable.js';
|
5
3
|
import NamespaceURI from '../config/NamespaceURI.js';
|
6
4
|
import HTMLScriptElement from '../nodes/html-script-element/HTMLScriptElement.js';
|
7
5
|
import IElement from '../nodes/element/IElement.js';
|
8
6
|
import HTMLLinkElement from '../nodes/html-link-element/HTMLLinkElement.js';
|
9
|
-
import HTMLElementPlainText from '../config/HTMLElementPlainText.js';
|
10
7
|
import IDocumentType from '../nodes/document-type/IDocumentType.js';
|
11
8
|
import INode from '../nodes/node/INode.js';
|
12
9
|
import IDocumentFragment from '../nodes/document-fragment/IDocumentFragment.js';
|
10
|
+
import HTMLElementConfig from '../config/HTMLElementConfig.js';
|
13
11
|
import * as Entities from 'entities';
|
12
|
+
import HTMLElementConfigContentModelEnum from '../config/HTMLElementConfigContentModelEnum.js';
|
14
13
|
|
15
14
|
/**
|
16
15
|
* Markup RegExp.
|
@@ -58,6 +57,8 @@ const DOCUMENT_TYPE_ATTRIBUTE_REGEXP = /"([^"]+)"/gm;
|
|
58
57
|
|
59
58
|
/**
|
60
59
|
* XML parser.
|
60
|
+
*
|
61
|
+
* @see https://html.spec.whatwg.org/multipage/indices.html
|
61
62
|
*/
|
62
63
|
export default class XMLParser {
|
63
64
|
/**
|
@@ -77,12 +78,11 @@ export default class XMLParser {
|
|
77
78
|
): IElement | IDocumentFragment | IDocument {
|
78
79
|
const root = options && options.rootNode ? options.rootNode : document.createDocumentFragment();
|
79
80
|
const stack: INode[] = [root];
|
81
|
+
const stackTagNames: string[] = [];
|
80
82
|
const markupRegexp = new RegExp(MARKUP_REGEXP, 'gm');
|
81
83
|
const { evaluateScripts = false } = options || {};
|
82
|
-
const unnestableTagNames: string[] = [];
|
83
84
|
let currentNode: INode | null = root;
|
84
85
|
let match: RegExpExecArray;
|
85
|
-
let plainTextTagName: string | null = null;
|
86
86
|
let readState: MarkupReadStateEnum = MarkupReadStateEnum.startOrEndTag;
|
87
87
|
let startTagIndex = 0;
|
88
88
|
let lastIndex = 0;
|
@@ -108,19 +108,31 @@ export default class XMLParser {
|
|
108
108
|
// Start tag.
|
109
109
|
const tagName = match[1].toUpperCase();
|
110
110
|
const localName = tagName === 'SVG' ? 'svg' : match[1];
|
111
|
+
const config = HTMLElementConfig[localName];
|
111
112
|
|
112
113
|
// Some elements are not allowed to be nested (e.g. "<a><a></a></a>" is not allowed.).
|
113
114
|
// Therefore we need to auto-close the tag, so that it become valid (e.g. "<a></a><a></a>").
|
114
|
-
|
115
|
-
|
116
|
-
|
115
|
+
if (
|
116
|
+
config?.contentModel ===
|
117
|
+
HTMLElementConfigContentModelEnum.noFirsLevelSelfDescendants &&
|
118
|
+
stackTagNames[stackTagNames.length - 1] === tagName
|
119
|
+
) {
|
120
|
+
stack.pop();
|
121
|
+
stackTagNames.pop();
|
122
|
+
currentNode = stack[stack.length - 1] || root;
|
123
|
+
} else if (
|
124
|
+
config?.contentModel === HTMLElementConfigContentModelEnum.noSelfDescendants &&
|
125
|
+
stackTagNames.includes(tagName)
|
126
|
+
) {
|
117
127
|
while (currentNode !== root) {
|
118
128
|
if ((<IElement>currentNode)[PropertySymbol.tagName].toUpperCase() === tagName) {
|
119
129
|
stack.pop();
|
130
|
+
stackTagNames.pop();
|
120
131
|
currentNode = stack[stack.length - 1] || root;
|
121
132
|
break;
|
122
133
|
}
|
123
134
|
stack.pop();
|
135
|
+
stackTagNames.pop();
|
124
136
|
currentNode = stack[stack.length - 1] || root;
|
125
137
|
}
|
126
138
|
}
|
@@ -136,6 +148,7 @@ export default class XMLParser {
|
|
136
148
|
currentNode.appendChild(newElement);
|
137
149
|
currentNode = newElement;
|
138
150
|
stack.push(currentNode);
|
151
|
+
stackTagNames.push(tagName);
|
139
152
|
readState = MarkupReadStateEnum.insideStartTag;
|
140
153
|
startTagIndex = markupRegexp.lastIndex;
|
141
154
|
} else if (match[2]) {
|
@@ -143,18 +156,10 @@ export default class XMLParser {
|
|
143
156
|
|
144
157
|
if (
|
145
158
|
match[2].toUpperCase() ===
|
146
|
-
(<IElement>currentNode)[PropertySymbol.tagName]
|
159
|
+
(<IElement>currentNode)[PropertySymbol.tagName]?.toUpperCase()
|
147
160
|
) {
|
148
|
-
// Some elements are not allowed to be nested (e.g. "<a><a></a></a>" is not allowed.).
|
149
|
-
// Therefore we need to auto-close the tag, so that it become valid (e.g. "<a></a><a></a>").
|
150
|
-
const unnestableTagNameIndex = unnestableTagNames.indexOf(
|
151
|
-
(<IElement>currentNode)[PropertySymbol.tagName].toUpperCase()
|
152
|
-
);
|
153
|
-
if (unnestableTagNameIndex !== -1) {
|
154
|
-
unnestableTagNames.splice(unnestableTagNameIndex, 1);
|
155
|
-
}
|
156
|
-
|
157
161
|
stack.pop();
|
162
|
+
stackTagNames.pop();
|
158
163
|
currentNode = stack[stack.length - 1] || root;
|
159
164
|
}
|
160
165
|
} else if (
|
@@ -201,8 +206,6 @@ export default class XMLParser {
|
|
201
206
|
case MarkupReadStateEnum.insideStartTag:
|
202
207
|
// End of start tag
|
203
208
|
if (match[7] || match[8]) {
|
204
|
-
// End of start tag.
|
205
|
-
|
206
209
|
// Attribute name and value.
|
207
210
|
|
208
211
|
const attributeString = xml.substring(startTagIndex, match.index);
|
@@ -257,33 +260,27 @@ export default class XMLParser {
|
|
257
260
|
// We need to check if the attribute string is read completely.
|
258
261
|
// The attribute string can potentially contain "/>" or ">".
|
259
262
|
if (hasAttributeStringEnded) {
|
263
|
+
const config = HTMLElementConfig[(<IElement>currentNode)[PropertySymbol.localName]];
|
264
|
+
|
260
265
|
// Checks if the tag is a self closing tag (ends with "/>") or void element.
|
261
266
|
// When it is a self closing tag or void element it should be closed immediately.
|
262
267
|
// Self closing tags are not allowed in the HTML namespace, but the parser should still allow it for void elements.
|
263
268
|
// Self closing tags is supported in the SVG namespace.
|
264
269
|
if (
|
265
|
-
|
270
|
+
config?.contentModel === HTMLElementConfigContentModelEnum.noDescendants ||
|
271
|
+
// SVG tag is self closing (<svg/>).
|
266
272
|
(match[7] &&
|
267
273
|
(<IElement>currentNode)[PropertySymbol.namespaceURI] === NamespaceURI.svg)
|
268
274
|
) {
|
269
275
|
stack.pop();
|
276
|
+
stackTagNames.pop();
|
270
277
|
currentNode = stack[stack.length - 1] || root;
|
271
278
|
readState = MarkupReadStateEnum.startOrEndTag;
|
272
279
|
} else {
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
? (<IElement>currentNode)[PropertySymbol.tagName]
|
278
|
-
: null;
|
279
|
-
|
280
|
-
readState = !!plainTextTagName
|
281
|
-
? MarkupReadStateEnum.plainTextContent
|
282
|
-
: MarkupReadStateEnum.startOrEndTag;
|
283
|
-
|
284
|
-
if (HTMLElementUnnestable[(<IElement>currentNode)[PropertySymbol.tagName]]) {
|
285
|
-
unnestableTagNames.push((<IElement>currentNode)[PropertySymbol.tagName]);
|
286
|
-
}
|
280
|
+
readState =
|
281
|
+
config?.contentModel === HTMLElementConfigContentModelEnum.rawText
|
282
|
+
? MarkupReadStateEnum.plainTextContent
|
283
|
+
: MarkupReadStateEnum.startOrEndTag;
|
287
284
|
}
|
288
285
|
|
289
286
|
startTagIndex = markupRegexp.lastIndex;
|
@@ -292,15 +289,17 @@ export default class XMLParser {
|
|
292
289
|
|
293
290
|
break;
|
294
291
|
case MarkupReadStateEnum.plainTextContent:
|
295
|
-
|
292
|
+
const tagName = currentNode[PropertySymbol.tagName];
|
293
|
+
|
294
|
+
if (tagName && match[2] && match[2].toUpperCase() === tagName) {
|
296
295
|
// End of plain text tag.
|
297
296
|
|
298
297
|
// Scripts are not allowed to be executed when they are parsed using innerHTML, outerHTML, replaceWith() etc.
|
299
298
|
// However, they are allowed to be executed when document.write() is used.
|
300
299
|
// See: https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement
|
301
|
-
if (
|
300
|
+
if (tagName === 'SCRIPT') {
|
302
301
|
(<HTMLScriptElement>currentNode)[PropertySymbol.evaluateScript] = evaluateScripts;
|
303
|
-
} else if (
|
302
|
+
} else if (tagName === 'LINK') {
|
304
303
|
// An assumption that the same rule should be applied for the HTMLLinkElement is made here.
|
305
304
|
(<HTMLLinkElement>currentNode)[PropertySymbol.evaluateCSS] = evaluateScripts;
|
306
305
|
}
|
@@ -313,8 +312,8 @@ export default class XMLParser {
|
|
313
312
|
);
|
314
313
|
|
315
314
|
stack.pop();
|
315
|
+
stackTagNames.pop();
|
316
316
|
currentNode = stack[stack.length - 1] || root;
|
317
|
-
plainTextTagName = null;
|
318
317
|
readState = MarkupReadStateEnum.startOrEndTag;
|
319
318
|
}
|
320
319
|
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import Element from '../nodes/element/Element.js';
|
2
2
|
import * as PropertySymbol from '../PropertySymbol.js';
|
3
3
|
import Node from '../nodes/node/Node.js';
|
4
|
-
import HTMLElementVoid from '../config/HTMLElementVoid.js';
|
5
4
|
import DocumentType from '../nodes/document-type/DocumentType.js';
|
6
5
|
import INode from '../nodes/node/INode.js';
|
7
6
|
import IElement from '../nodes/element/IElement.js';
|
@@ -11,6 +10,8 @@ import IProcessingInstruction from '../nodes/processing-instruction/IProcessingI
|
|
11
10
|
import * as Entities from 'entities';
|
12
11
|
import DocumentFragment from '../nodes/document-fragment/DocumentFragment.js';
|
13
12
|
import ShadowRoot from '../nodes/shadow-root/ShadowRoot.js';
|
13
|
+
import HTMLElementConfig from '../config/HTMLElementConfig.js';
|
14
|
+
import HTMLElementConfigContentModelEnum from '../config/HTMLElementConfigContentModelEnum.js';
|
14
15
|
|
15
16
|
/**
|
16
17
|
* Utility for converting an element to string.
|
@@ -51,8 +52,9 @@ export default class XMLSerializer {
|
|
51
52
|
case NodeTypeEnum.elementNode:
|
52
53
|
const element = <Element>root;
|
53
54
|
const localName = element[PropertySymbol.localName];
|
55
|
+
const config = HTMLElementConfig[element[PropertySymbol.localName]];
|
54
56
|
|
55
|
-
if (
|
57
|
+
if (config?.contentModel === HTMLElementConfigContentModelEnum.noDescendants) {
|
56
58
|
return `<${localName}${this.getAttributes(element)}>`;
|
57
59
|
}
|
58
60
|
|
@@ -1,122 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.default = {
|
4
|
-
a: 'HTMLAnchorElement',
|
5
|
-
abbr: 'HTMLElement',
|
6
|
-
address: 'HTMLElement',
|
7
|
-
area: 'HTMLElement',
|
8
|
-
article: 'HTMLElement',
|
9
|
-
aside: 'HTMLElement',
|
10
|
-
audio: 'HTMLAudioElement',
|
11
|
-
b: 'HTMLElement',
|
12
|
-
base: 'HTMLBaseElement',
|
13
|
-
bdi: 'HTMLElement',
|
14
|
-
bdo: 'HTMLElement',
|
15
|
-
blockquaote: 'HTMLElement',
|
16
|
-
body: 'HTMLElement',
|
17
|
-
template: 'HTMLTemplateElement',
|
18
|
-
form: 'HTMLFormElement',
|
19
|
-
input: 'HTMLInputElement',
|
20
|
-
textarea: 'HTMLTextAreaElement',
|
21
|
-
script: 'HTMLScriptElement',
|
22
|
-
img: 'HTMLImageElement',
|
23
|
-
link: 'HTMLLinkElement',
|
24
|
-
style: 'HTMLStyleElement',
|
25
|
-
label: 'HTMLLabelElement',
|
26
|
-
slot: 'HTMLSlotElement',
|
27
|
-
meta: 'HTMLMetaElement',
|
28
|
-
blockquote: 'HTMLElement',
|
29
|
-
br: 'HTMLElement',
|
30
|
-
button: 'HTMLButtonElement',
|
31
|
-
canvas: 'HTMLElement',
|
32
|
-
caption: 'HTMLElement',
|
33
|
-
cite: 'HTMLElement',
|
34
|
-
code: 'HTMLElement',
|
35
|
-
col: 'HTMLElement',
|
36
|
-
colgroup: 'HTMLElement',
|
37
|
-
data: 'HTMLElement',
|
38
|
-
datalist: 'HTMLElement',
|
39
|
-
dd: 'HTMLElement',
|
40
|
-
del: 'HTMLElement',
|
41
|
-
details: 'HTMLElement',
|
42
|
-
dfn: 'HTMLElement',
|
43
|
-
dialog: 'HTMLDialogElement',
|
44
|
-
div: 'HTMLElement',
|
45
|
-
dl: 'HTMLElement',
|
46
|
-
dt: 'HTMLElement',
|
47
|
-
em: 'HTMLElement',
|
48
|
-
embed: 'HTMLElement',
|
49
|
-
fieldset: 'HTMLElement',
|
50
|
-
figcaption: 'HTMLElement',
|
51
|
-
figure: 'HTMLElement',
|
52
|
-
footer: 'HTMLElement',
|
53
|
-
h1: 'HTMLElement',
|
54
|
-
h2: 'HTMLElement',
|
55
|
-
h3: 'HTMLElement',
|
56
|
-
h4: 'HTMLElement',
|
57
|
-
h5: 'HTMLElement',
|
58
|
-
h6: 'HTMLElement',
|
59
|
-
head: 'HTMLElement',
|
60
|
-
header: 'HTMLElement',
|
61
|
-
hgroup: 'HTMLElement',
|
62
|
-
hr: 'HTMLElement',
|
63
|
-
html: 'HTMLElement',
|
64
|
-
i: 'HTMLElement',
|
65
|
-
iframe: 'HTMLIFrameElement',
|
66
|
-
ins: 'HTMLElement',
|
67
|
-
kbd: 'HTMLElement',
|
68
|
-
legend: 'HTMLElement',
|
69
|
-
li: 'HTMLElement',
|
70
|
-
main: 'HTMLElement',
|
71
|
-
map: 'HTMLElement',
|
72
|
-
mark: 'HTMLElement',
|
73
|
-
math: 'HTMLElement',
|
74
|
-
menu: 'HTMLElement',
|
75
|
-
menuitem: 'HTMLElement',
|
76
|
-
meter: 'HTMLElement',
|
77
|
-
nav: 'HTMLElement',
|
78
|
-
noscript: 'HTMLElement',
|
79
|
-
object: 'HTMLElement',
|
80
|
-
ol: 'HTMLElement',
|
81
|
-
optgroup: 'HTMLOptGroupElement',
|
82
|
-
option: 'HTMLOptionElement',
|
83
|
-
output: 'HTMLElement',
|
84
|
-
p: 'HTMLElement',
|
85
|
-
param: 'HTMLElement',
|
86
|
-
picture: 'HTMLElement',
|
87
|
-
pre: 'HTMLElement',
|
88
|
-
progress: 'HTMLElement',
|
89
|
-
q: 'HTMLElement',
|
90
|
-
rb: 'HTMLElement',
|
91
|
-
rp: 'HTMLElement',
|
92
|
-
rt: 'HTMLElement',
|
93
|
-
rtc: 'HTMLElement',
|
94
|
-
ruby: 'HTMLElement',
|
95
|
-
s: 'HTMLElement',
|
96
|
-
samp: 'HTMLElement',
|
97
|
-
section: 'HTMLElement',
|
98
|
-
select: 'HTMLSelectElement',
|
99
|
-
small: 'HTMLElement',
|
100
|
-
source: 'HTMLElement',
|
101
|
-
span: 'HTMLElement',
|
102
|
-
strong: 'HTMLElement',
|
103
|
-
sub: 'HTMLElement',
|
104
|
-
summary: 'HTMLElement',
|
105
|
-
sup: 'HTMLElement',
|
106
|
-
table: 'HTMLElement',
|
107
|
-
tbody: 'HTMLElement',
|
108
|
-
td: 'HTMLElement',
|
109
|
-
tfoot: 'HTMLElement',
|
110
|
-
th: 'HTMLElement',
|
111
|
-
thead: 'HTMLElement',
|
112
|
-
time: 'HTMLElement',
|
113
|
-
title: 'HTMLElement',
|
114
|
-
tr: 'HTMLElement',
|
115
|
-
track: 'HTMLElement',
|
116
|
-
u: 'HTMLElement',
|
117
|
-
ul: 'HTMLElement',
|
118
|
-
var: 'HTMLElement',
|
119
|
-
video: 'HTMLVideoElement',
|
120
|
-
wbr: 'HTMLElement'
|
121
|
-
};
|
122
|
-
//# sourceMappingURL=HTMLElementLocalNameToClass.cjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"HTMLEl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E,aAAa;IACpB,MAAM,EAAE,aAAa;IACrB,IAAI,EAAE,aAAa;IACnB,MAAM,EAAE,aAAa;IACrB,GAAG,EAAE,aAAa;IAClB,OAAO,EAAE,aAAa;IACtB,GAAG,EAAE,aAAa;IAClB,KAAK,EAAE,aAAa;IACpB,KAAK,EAAE,aAAa;IACpB,EAAE,EAAE,aAAa;IACjB,KAAK,EAAE,aAAa;IACpB,EAAE,EAAE,aAAa;IACjB,KAAK,EAAE,aAAa;IACpB,IAAI,EAAE,aAAa;IACnB,KAAK,EAAE,aAAa;IACpB,EAAE,EAAE,aAAa;IACjB,KAAK,EAAE,aAAa;IACpB,CAAC,EAAE,aAAa;IAChB,EAAE,EAAE,aAAa;IACjB,GAAG,EAAE,aAAa;IAClB,KAAK,EAAE,kBAAkB;IACzB,GAAG,EAAE,aAAa;CAClB,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"HTMLElementLocalNameToClass.d.ts","sourceRoot":"","sources":["../../src/config/HTMLElementLocalNameToClass.ts"],"names":[],"mappings":";;;AAAA,wBAsHE"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"HTMLElementPlainText.cjs","sourceRoot":"","sources":["../../src/config/HTMLElementPlainText.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACd,KAAK,EAAE,IAAI;IACX,MAAM,EAAE,IAAI;CACZ,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"HTMLElementPlainText.d.ts","sourceRoot":"","sources":["../../src/config/HTMLElementPlainText.ts"],"names":[],"mappings":";;;;AAAA,wBAGE"}
|
@@ -1,21 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.default = {
|
4
|
-
A: true,
|
5
|
-
BUTTON: true,
|
6
|
-
DD: true,
|
7
|
-
DT: true,
|
8
|
-
FORM: true,
|
9
|
-
H1: true,
|
10
|
-
H2: true,
|
11
|
-
H3: true,
|
12
|
-
H4: true,
|
13
|
-
H5: true,
|
14
|
-
H6: true,
|
15
|
-
LI: true,
|
16
|
-
OPTION: true,
|
17
|
-
P: true,
|
18
|
-
SELECT: true,
|
19
|
-
TABLE: true
|
20
|
-
};
|
21
|
-
//# sourceMappingURL=HTMLElementUnnestable.cjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"HTMLElementUnnestable.cjs","sourceRoot":"","sources":["../../src/config/HTMLElementUnnestable.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACd,CAAC,EAAE,IAAI;IACP,MAAM,EAAE,IAAI;IACZ,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,IAAI,EAAE,IAAI;IACV,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,MAAM,EAAE,IAAI;IACZ,CAAC,EAAE,IAAI;IACP,MAAM,EAAE,IAAI;IACZ,KAAK,EAAE,IAAI;CACX,CAAC"}
|
@@ -1,20 +0,0 @@
|
|
1
|
-
declare const _default: {
|
2
|
-
A: boolean;
|
3
|
-
BUTTON: boolean;
|
4
|
-
DD: boolean;
|
5
|
-
DT: boolean;
|
6
|
-
FORM: boolean;
|
7
|
-
H1: boolean;
|
8
|
-
H2: boolean;
|
9
|
-
H3: boolean;
|
10
|
-
H4: boolean;
|
11
|
-
H5: boolean;
|
12
|
-
H6: boolean;
|
13
|
-
LI: boolean;
|
14
|
-
OPTION: boolean;
|
15
|
-
P: boolean;
|
16
|
-
SELECT: boolean;
|
17
|
-
TABLE: boolean;
|
18
|
-
};
|
19
|
-
export default _default;
|
20
|
-
//# sourceMappingURL=HTMLElementUnnestable.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"HTMLElementUnnestable.d.ts","sourceRoot":"","sources":["../../src/config/HTMLElementUnnestable.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,wBAiBE"}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.default = {
|
4
|
-
AREA: true,
|
5
|
-
BASE: true,
|
6
|
-
BR: true,
|
7
|
-
COL: true,
|
8
|
-
EMBED: true,
|
9
|
-
HR: true,
|
10
|
-
IMG: true,
|
11
|
-
INPUT: true,
|
12
|
-
LINK: true,
|
13
|
-
META: true,
|
14
|
-
PARAM: true,
|
15
|
-
SOURCE: true,
|
16
|
-
TRACK: true,
|
17
|
-
WBR: true
|
18
|
-
};
|
19
|
-
//# sourceMappingURL=HTMLElementVoid.cjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"HTMLElementVoid.cjs","sourceRoot":"","sources":["../../src/config/HTMLElementVoid.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACd,IAAI,EAAE,IAAI;IACV,IAAI,EAAE,IAAI;IACV,EAAE,EAAE,IAAI;IACR,GAAG,EAAE,IAAI;IACT,KAAK,EAAE,IAAI;IACX,EAAE,EAAE,IAAI;IACR,GAAG,EAAE,IAAI;IACT,KAAK,EAAE,IAAI;IACX,IAAI,EAAE,IAAI;IACV,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,IAAI;IACX,MAAM,EAAE,IAAI;IACZ,KAAK,EAAE,IAAI;IACX,GAAG,EAAE,IAAI;CACT,CAAC"}
|
@@ -1,18 +0,0 @@
|
|
1
|
-
declare const _default: {
|
2
|
-
AREA: boolean;
|
3
|
-
BASE: boolean;
|
4
|
-
BR: boolean;
|
5
|
-
COL: boolean;
|
6
|
-
EMBED: boolean;
|
7
|
-
HR: boolean;
|
8
|
-
IMG: boolean;
|
9
|
-
INPUT: boolean;
|
10
|
-
LINK: boolean;
|
11
|
-
META: boolean;
|
12
|
-
PARAM: boolean;
|
13
|
-
SOURCE: boolean;
|
14
|
-
TRACK: boolean;
|
15
|
-
WBR: boolean;
|
16
|
-
};
|
17
|
-
export default _default;
|
18
|
-
//# sourceMappingURL=HTMLElementVoid.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"HTMLElementVoid.d.ts","sourceRoot":"","sources":["../../src/config/HTMLElementVoid.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wBAeE"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"HTMLElementLocalNameToClass.d.ts","sourceRoot":"","sources":["../../src/config/HTMLElementLocalNameToClass.ts"],"names":[],"mappings":";;;AAAA,wBAsHE"}
|