happy-dom 2.46.2 → 2.47.1
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/README.md +84 -12
- package/lib/config/ElementTag.d.ts +128 -21
- package/lib/config/ElementTag.js +128 -21
- package/lib/config/ElementTag.js.map +1 -1
- package/lib/config/NonImplemenetedElementClasses.d.ts +2 -0
- package/lib/config/NonImplemenetedElementClasses.js +64 -0
- package/lib/config/NonImplemenetedElementClasses.js.map +1 -0
- package/lib/custom-element/CustomElementRegistry.d.ts +3 -1
- package/lib/custom-element/CustomElementRegistry.js +15 -14
- package/lib/custom-element/CustomElementRegistry.js.map +1 -1
- package/lib/index.d.ts +1 -5
- package/lib/index.js +1 -9
- package/lib/index.js.map +1 -1
- package/lib/nodes/document/Document.js +5 -6
- package/lib/nodes/document/Document.js.map +1 -1
- package/lib/nodes/element/Element.d.ts +18 -3
- package/lib/nodes/element/Element.js +33 -8
- package/lib/nodes/element/Element.js.map +1 -1
- package/lib/nodes/element/IElement.d.ts +22 -0
- package/lib/nodes/html-unknown-element/HTMLUnknownElement.d.ts +18 -0
- package/lib/nodes/html-unknown-element/HTMLUnknownElement.js +76 -0
- package/lib/nodes/html-unknown-element/HTMLUnknownElement.js.map +1 -0
- package/lib/nodes/node/Node.js +2 -2
- package/lib/nodes/node/Node.js.map +1 -1
- package/lib/window/IWindow.d.ts +4 -1
- package/lib/window/Window.d.ts +4 -1
- package/lib/window/Window.js +11 -10
- package/lib/window/Window.js.map +1 -1
- package/lib/xml-serializer/XMLSerializer.d.ts +6 -5
- package/lib/xml-serializer/XMLSerializer.js +16 -9
- package/lib/xml-serializer/XMLSerializer.js.map +1 -1
- package/package.json +2 -2
- package/src/config/ElementTag.ts +128 -21
- package/src/config/NonImplemenetedElementClasses.ts +61 -0
- package/src/custom-element/CustomElementRegistry.ts +16 -14
- package/src/index.ts +0 -8
- package/src/nodes/document/Document.ts +6 -6
- package/src/nodes/element/Element.ts +38 -8
- package/src/nodes/element/IElement.ts +22 -0
- package/src/nodes/html-unknown-element/HTMLUnknownElement.ts +52 -0
- package/src/nodes/node/Node.ts +2 -2
- package/src/window/IWindow.ts +4 -1
- package/src/window/Window.ts +10 -7
- package/src/xml-serializer/XMLSerializer.ts +17 -7
- package/lib/config/ElementClass.d.ts +0 -65
- package/lib/config/ElementClass.js +0 -70
- package/lib/config/ElementClass.js.map +0 -1
- package/src/config/ElementClass.ts +0 -65
package/README.md
CHANGED
@@ -3,9 +3,11 @@
|
|
3
3
|
|
4
4
|
# About
|
5
5
|
|
6
|
-
|
6
|
+
[Happy DOM](https://github.com/capricorn86/happy-dom) is a JavaScript implementation of a web browser without its graphical user interface. It includes many web standards from WHATWG [DOM](https://dom.spec.whatwg.org/) and [HTML](https://html.spec.whatwg.org/multipage/).
|
7
7
|
|
8
|
-
[Happy DOM](https://github.com/capricorn86/happy-dom)
|
8
|
+
The goal of [Happy DOM](https://github.com/capricorn86/happy-dom) is to emulate enough of a web browser to be useful for testing, scraping web sites and server-side rendering.
|
9
|
+
|
10
|
+
[Happy DOM](https://github.com/capricorn86/happy-dom) focuses heavily on performance and can be used as an alternative to [JSDOM](https://github.com/jsdom/jsdom).
|
9
11
|
|
10
12
|
|
11
13
|
### DOM Features
|
@@ -14,6 +16,8 @@ A [JSDOM](https://github.com/jsdom/jsdom) alternative with focus on performance.
|
|
14
16
|
|
15
17
|
- Shadow Root (Shadow DOM)
|
16
18
|
|
19
|
+
- Declarative Shadow DOM
|
20
|
+
|
17
21
|
- Mutation Observer
|
18
22
|
|
19
23
|
- Tree Walker
|
@@ -95,13 +99,13 @@ document.write(`
|
|
95
99
|
<div class="container">
|
96
100
|
<!–– Content will be added here -->
|
97
101
|
</div>
|
102
|
+
<script>
|
103
|
+
const element = document.createElement('div');
|
104
|
+
const container = document.querySelector('.container');
|
105
|
+
element.innerHTML = 'Test';
|
106
|
+
container.appendChild(element);
|
107
|
+
</script>
|
98
108
|
</body>
|
99
|
-
<script>
|
100
|
-
const element = document.createElement('div');
|
101
|
-
const container = document.querySelector('.container');
|
102
|
-
element.innerHTML = 'Test';
|
103
|
-
container.appendChild(element);
|
104
|
-
</script>
|
105
109
|
</html>
|
106
110
|
`);
|
107
111
|
|
@@ -109,6 +113,76 @@ document.write(`
|
|
109
113
|
console.log(document.querySelector('.container div').innerHTML);
|
110
114
|
```
|
111
115
|
|
116
|
+
## Server-Side Rendering of Web Components
|
117
|
+
|
118
|
+
The example below will show you how to setup a Node [VM context](https://nodejs.org/api/vm.html#vm_vm_createcontext_sandbox_options) to render a page with custom elements (web components) in Happy DOM. We can then use a new web feature called [Declarative Shadow DOM](https://chromestatus.com/feature/5191745052606464) to include the shadow roots in the HTML output.
|
119
|
+
|
120
|
+
[Declarative Shadow DOM](https://chromestatus.com/feature/5191745052606464) is only supported by Chromium based browsers. Unsupported browsers should safely fallback to being rendered using Javascript.
|
121
|
+
|
122
|
+
```javascript
|
123
|
+
import { Window } from 'happy-dom';
|
124
|
+
import VM from 'vm';
|
125
|
+
|
126
|
+
const window = VM.createContext(new Window());
|
127
|
+
const document = window.document;
|
128
|
+
|
129
|
+
window.location.href = 'http://localhost:8080';
|
130
|
+
|
131
|
+
document.write(`
|
132
|
+
<html>
|
133
|
+
<head>
|
134
|
+
<title>Test page</title>
|
135
|
+
</head>
|
136
|
+
<body>
|
137
|
+
<div>
|
138
|
+
<my-custom-element>
|
139
|
+
<span>Slotted content</span>
|
140
|
+
</my-custom-element>
|
141
|
+
</div>
|
142
|
+
<script>
|
143
|
+
class MyCustomElement extends HTMLElement {
|
144
|
+
constructor() {
|
145
|
+
super();
|
146
|
+
this.attachShadow({ mode: 'open' });
|
147
|
+
}
|
148
|
+
|
149
|
+
connectedCallback() {
|
150
|
+
this.shadowRoot.innerHTML = \`
|
151
|
+
<style>
|
152
|
+
:host {
|
153
|
+
display: inline-block;
|
154
|
+
background: red;
|
155
|
+
}
|
156
|
+
</style>
|
157
|
+
<div><slot></slot></div>
|
158
|
+
\`;
|
159
|
+
}
|
160
|
+
}
|
161
|
+
|
162
|
+
customElements.define('my-custom-element', MyCustomElement);
|
163
|
+
</script>
|
164
|
+
</body>
|
165
|
+
</html>
|
166
|
+
`);
|
167
|
+
|
168
|
+
/*
|
169
|
+
Will output:
|
170
|
+
<my-custom-element>
|
171
|
+
<span>Slotted content</span>
|
172
|
+
<template shadowroot="open">
|
173
|
+
<style>
|
174
|
+
:host {
|
175
|
+
display: inline-block;
|
176
|
+
background: red;
|
177
|
+
}
|
178
|
+
</style>
|
179
|
+
<div><slot></slot></div>
|
180
|
+
</template>
|
181
|
+
</my-custom-element>
|
182
|
+
*/
|
183
|
+
console.log(document.body.querySelector('div').getInnerHTML({ includeShadowRoots: true }));
|
184
|
+
```
|
185
|
+
|
112
186
|
|
113
187
|
|
114
188
|
## Additional Features
|
@@ -160,8 +234,6 @@ window.happyDOM.cancelAsync();
|
|
160
234
|
|
161
235
|
Happy DOM provide with a package called [@happy-dom/jest-environment](https://github.com/capricorn86/happy-dom/tree/master/packages/jest-environment) that makes it possible to use Happy DOM with [Jest](https://jestjs.io/).
|
162
236
|
|
237
|
+
# Global Registration
|
163
238
|
|
164
|
-
|
165
|
-
# Server Side Rendering
|
166
|
-
|
167
|
-
Happy DOM provide with a package called [@happy-dom/server-rendering](https://github.com/capricorn86/happy-dom/tree/master/packages/server-rendering) that makes the setup of server side rendering easier.
|
239
|
+
Happy DOM provide with a package called [@happy-dom/global-registrator](https://github.com/capricorn86/happy-dom/tree/master/packages/global-registrator) that can register Happy DOM globally. It makes it possible to use Happy DOM for testing in a Node environment.
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import HTMLElement from '../nodes/html-element/HTMLElement';
|
1
2
|
import HTMLTemplateElement from '../nodes/html-template-element/HTMLTemplateElement';
|
2
3
|
import HTMLFormElement from '../nodes/html-form-element/HTMLFormElement';
|
3
4
|
import HTMLInputElement from '../nodes/html-input-element/HTMLInputElement';
|
@@ -12,26 +13,132 @@ import HTMLLabelElement from '../nodes/html-label-element/HTMLLabelElement';
|
|
12
13
|
import HTMLSlotElement from '../nodes/html-slot-element/HTMLSlotElement';
|
13
14
|
import HTMLMetaElement from '../nodes/html-meta-element/HTMLMetaElement';
|
14
15
|
declare const _default: {
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
16
|
+
A: typeof HTMLElement;
|
17
|
+
ABBR: typeof HTMLElement;
|
18
|
+
ADDRESS: typeof HTMLElement;
|
19
|
+
AREA: typeof HTMLElement;
|
20
|
+
ARTICLE: typeof HTMLElement;
|
21
|
+
ASIDE: typeof HTMLElement;
|
22
|
+
AUDIO: typeof HTMLElement;
|
23
|
+
B: typeof HTMLElement;
|
24
|
+
BASE: typeof HTMLElement;
|
25
|
+
BDI: typeof HTMLElement;
|
26
|
+
BDO: typeof HTMLElement;
|
27
|
+
BLOCKQUAOTE: typeof HTMLElement;
|
28
|
+
BODY: typeof HTMLElement;
|
29
|
+
TEMPLATE: typeof HTMLTemplateElement;
|
30
|
+
FORM: typeof HTMLFormElement;
|
31
|
+
INPUT: typeof HTMLInputElement;
|
32
|
+
TEXTAREA: typeof HTMLTextAreaElement;
|
33
|
+
SCRIPT: typeof HTMLScriptElement;
|
34
|
+
IMG: typeof HTMLImageElement;
|
35
|
+
LINK: typeof HTMLLinkElement;
|
36
|
+
STYLE: typeof HTMLStyleElement;
|
37
|
+
LABEL: typeof HTMLLabelElement;
|
38
|
+
SLOT: typeof HTMLSlotElement;
|
39
|
+
SVG: typeof SVGSVGElement;
|
40
|
+
CIRCLE: typeof SVGElement;
|
41
|
+
ELLIPSE: typeof SVGElement;
|
42
|
+
LINE: typeof SVGElement;
|
43
|
+
PATH: typeof SVGElement;
|
44
|
+
POLYGON: typeof SVGElement;
|
45
|
+
POLYLINE: typeof SVGElement;
|
46
|
+
RECT: typeof SVGElement;
|
47
|
+
STOP: typeof SVGElement;
|
48
|
+
USE: typeof SVGElement;
|
49
|
+
META: typeof HTMLMetaElement;
|
50
|
+
BLOCKQUOTE: typeof HTMLElement;
|
51
|
+
BR: typeof HTMLElement;
|
52
|
+
BUTTON: typeof HTMLElement;
|
53
|
+
CANVAS: typeof HTMLElement;
|
54
|
+
CAPTION: typeof HTMLElement;
|
55
|
+
CITE: typeof HTMLElement;
|
56
|
+
CODE: typeof HTMLElement;
|
57
|
+
COL: typeof HTMLElement;
|
58
|
+
COLGROUP: typeof HTMLElement;
|
59
|
+
DATA: typeof HTMLElement;
|
60
|
+
DATALIST: typeof HTMLElement;
|
61
|
+
DD: typeof HTMLElement;
|
62
|
+
DEL: typeof HTMLElement;
|
63
|
+
DETAILS: typeof HTMLElement;
|
64
|
+
DFN: typeof HTMLElement;
|
65
|
+
DIALOG: typeof HTMLElement;
|
66
|
+
DIV: typeof HTMLElement;
|
67
|
+
DL: typeof HTMLElement;
|
68
|
+
DT: typeof HTMLElement;
|
69
|
+
EM: typeof HTMLElement;
|
70
|
+
EMBED: typeof HTMLElement;
|
71
|
+
FIELDSET: typeof HTMLElement;
|
72
|
+
FIGCAPTION: typeof HTMLElement;
|
73
|
+
FIGURE: typeof HTMLElement;
|
74
|
+
FOOTER: typeof HTMLElement;
|
75
|
+
H1: typeof HTMLElement;
|
76
|
+
H2: typeof HTMLElement;
|
77
|
+
H3: typeof HTMLElement;
|
78
|
+
H4: typeof HTMLElement;
|
79
|
+
H5: typeof HTMLElement;
|
80
|
+
H6: typeof HTMLElement;
|
81
|
+
HEAD: typeof HTMLElement;
|
82
|
+
HEADER: typeof HTMLElement;
|
83
|
+
HGROUP: typeof HTMLElement;
|
84
|
+
HR: typeof HTMLElement;
|
85
|
+
HTML: typeof HTMLElement;
|
86
|
+
I: typeof HTMLElement;
|
87
|
+
IFRAME: typeof HTMLElement;
|
88
|
+
INS: typeof HTMLElement;
|
89
|
+
KBD: typeof HTMLElement;
|
90
|
+
LEGEND: typeof HTMLElement;
|
91
|
+
LI: typeof HTMLElement;
|
92
|
+
MAIN: typeof HTMLElement;
|
93
|
+
MAP: typeof HTMLElement;
|
94
|
+
MARK: typeof HTMLElement;
|
95
|
+
MATH: typeof HTMLElement;
|
96
|
+
MENU: typeof HTMLElement;
|
97
|
+
MENUITEM: typeof HTMLElement;
|
98
|
+
METER: typeof HTMLElement;
|
99
|
+
NAV: typeof HTMLElement;
|
100
|
+
NOSCRIPT: typeof HTMLElement;
|
101
|
+
OBJECT: typeof HTMLElement;
|
102
|
+
OL: typeof HTMLElement;
|
103
|
+
OPTGROUP: typeof HTMLElement;
|
104
|
+
OPTION: typeof HTMLElement;
|
105
|
+
OUTPUT: typeof HTMLElement;
|
106
|
+
P: typeof HTMLElement;
|
107
|
+
PARAM: typeof HTMLElement;
|
108
|
+
PICTURE: typeof HTMLElement;
|
109
|
+
PRE: typeof HTMLElement;
|
110
|
+
PROGRESS: typeof HTMLElement;
|
111
|
+
Q: typeof HTMLElement;
|
112
|
+
RB: typeof HTMLElement;
|
113
|
+
RP: typeof HTMLElement;
|
114
|
+
RT: typeof HTMLElement;
|
115
|
+
RTC: typeof HTMLElement;
|
116
|
+
RUBY: typeof HTMLElement;
|
117
|
+
S: typeof HTMLElement;
|
118
|
+
SAMP: typeof HTMLElement;
|
119
|
+
SECTION: typeof HTMLElement;
|
120
|
+
SELECT: typeof HTMLElement;
|
121
|
+
SMALL: typeof HTMLElement;
|
122
|
+
SOURCE: typeof HTMLElement;
|
123
|
+
SPAN: typeof HTMLElement;
|
124
|
+
STRONG: typeof HTMLElement;
|
125
|
+
SUB: typeof HTMLElement;
|
126
|
+
SUMMARY: typeof HTMLElement;
|
127
|
+
SUP: typeof HTMLElement;
|
128
|
+
TABLE: typeof HTMLElement;
|
129
|
+
TBODY: typeof HTMLElement;
|
130
|
+
TD: typeof HTMLElement;
|
131
|
+
TFOOT: typeof HTMLElement;
|
132
|
+
TH: typeof HTMLElement;
|
133
|
+
THEAD: typeof HTMLElement;
|
134
|
+
TIME: typeof HTMLElement;
|
135
|
+
TITLE: typeof HTMLElement;
|
136
|
+
TR: typeof HTMLElement;
|
137
|
+
TRACK: typeof HTMLElement;
|
138
|
+
U: typeof HTMLElement;
|
139
|
+
UL: typeof HTMLElement;
|
140
|
+
VAR: typeof HTMLElement;
|
141
|
+
VIDEO: typeof HTMLElement;
|
142
|
+
WBR: typeof HTMLElement;
|
36
143
|
};
|
37
144
|
export default _default;
|
package/lib/config/ElementTag.js
CHANGED
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
var HTMLElement_1 = __importDefault(require("../nodes/html-element/HTMLElement"));
|
6
7
|
var HTMLTemplateElement_1 = __importDefault(require("../nodes/html-template-element/HTMLTemplateElement"));
|
7
8
|
var HTMLFormElement_1 = __importDefault(require("../nodes/html-form-element/HTMLFormElement"));
|
8
9
|
var HTMLInputElement_1 = __importDefault(require("../nodes/html-input-element/HTMLInputElement"));
|
@@ -17,26 +18,132 @@ var HTMLLabelElement_1 = __importDefault(require("../nodes/html-label-element/HT
|
|
17
18
|
var HTMLSlotElement_1 = __importDefault(require("../nodes/html-slot-element/HTMLSlotElement"));
|
18
19
|
var HTMLMetaElement_1 = __importDefault(require("../nodes/html-meta-element/HTMLMetaElement"));
|
19
20
|
exports.default = {
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
21
|
+
A: HTMLElement_1.default,
|
22
|
+
ABBR: HTMLElement_1.default,
|
23
|
+
ADDRESS: HTMLElement_1.default,
|
24
|
+
AREA: HTMLElement_1.default,
|
25
|
+
ARTICLE: HTMLElement_1.default,
|
26
|
+
ASIDE: HTMLElement_1.default,
|
27
|
+
AUDIO: HTMLElement_1.default,
|
28
|
+
B: HTMLElement_1.default,
|
29
|
+
BASE: HTMLElement_1.default,
|
30
|
+
BDI: HTMLElement_1.default,
|
31
|
+
BDO: HTMLElement_1.default,
|
32
|
+
BLOCKQUAOTE: HTMLElement_1.default,
|
33
|
+
BODY: HTMLElement_1.default,
|
34
|
+
TEMPLATE: HTMLTemplateElement_1.default,
|
35
|
+
FORM: HTMLFormElement_1.default,
|
36
|
+
INPUT: HTMLInputElement_1.default,
|
37
|
+
TEXTAREA: HTMLTextAreaElement_1.default,
|
38
|
+
SCRIPT: HTMLScriptElement_1.default,
|
39
|
+
IMG: HTMLImageElement_1.default,
|
40
|
+
LINK: HTMLLinkElement_1.default,
|
41
|
+
STYLE: HTMLStyleElement_1.default,
|
42
|
+
LABEL: HTMLLabelElement_1.default,
|
43
|
+
SLOT: HTMLSlotElement_1.default,
|
44
|
+
SVG: SVGSVGElement_1.default,
|
45
|
+
CIRCLE: SVGElement_1.default,
|
46
|
+
ELLIPSE: SVGElement_1.default,
|
47
|
+
LINE: SVGElement_1.default,
|
48
|
+
PATH: SVGElement_1.default,
|
49
|
+
POLYGON: SVGElement_1.default,
|
50
|
+
POLYLINE: SVGElement_1.default,
|
51
|
+
RECT: SVGElement_1.default,
|
52
|
+
STOP: SVGElement_1.default,
|
53
|
+
USE: SVGElement_1.default,
|
54
|
+
META: HTMLMetaElement_1.default,
|
55
|
+
BLOCKQUOTE: HTMLElement_1.default,
|
56
|
+
BR: HTMLElement_1.default,
|
57
|
+
BUTTON: HTMLElement_1.default,
|
58
|
+
CANVAS: HTMLElement_1.default,
|
59
|
+
CAPTION: HTMLElement_1.default,
|
60
|
+
CITE: HTMLElement_1.default,
|
61
|
+
CODE: HTMLElement_1.default,
|
62
|
+
COL: HTMLElement_1.default,
|
63
|
+
COLGROUP: HTMLElement_1.default,
|
64
|
+
DATA: HTMLElement_1.default,
|
65
|
+
DATALIST: HTMLElement_1.default,
|
66
|
+
DD: HTMLElement_1.default,
|
67
|
+
DEL: HTMLElement_1.default,
|
68
|
+
DETAILS: HTMLElement_1.default,
|
69
|
+
DFN: HTMLElement_1.default,
|
70
|
+
DIALOG: HTMLElement_1.default,
|
71
|
+
DIV: HTMLElement_1.default,
|
72
|
+
DL: HTMLElement_1.default,
|
73
|
+
DT: HTMLElement_1.default,
|
74
|
+
EM: HTMLElement_1.default,
|
75
|
+
EMBED: HTMLElement_1.default,
|
76
|
+
FIELDSET: HTMLElement_1.default,
|
77
|
+
FIGCAPTION: HTMLElement_1.default,
|
78
|
+
FIGURE: HTMLElement_1.default,
|
79
|
+
FOOTER: HTMLElement_1.default,
|
80
|
+
H1: HTMLElement_1.default,
|
81
|
+
H2: HTMLElement_1.default,
|
82
|
+
H3: HTMLElement_1.default,
|
83
|
+
H4: HTMLElement_1.default,
|
84
|
+
H5: HTMLElement_1.default,
|
85
|
+
H6: HTMLElement_1.default,
|
86
|
+
HEAD: HTMLElement_1.default,
|
87
|
+
HEADER: HTMLElement_1.default,
|
88
|
+
HGROUP: HTMLElement_1.default,
|
89
|
+
HR: HTMLElement_1.default,
|
90
|
+
HTML: HTMLElement_1.default,
|
91
|
+
I: HTMLElement_1.default,
|
92
|
+
IFRAME: HTMLElement_1.default,
|
93
|
+
INS: HTMLElement_1.default,
|
94
|
+
KBD: HTMLElement_1.default,
|
95
|
+
LEGEND: HTMLElement_1.default,
|
96
|
+
LI: HTMLElement_1.default,
|
97
|
+
MAIN: HTMLElement_1.default,
|
98
|
+
MAP: HTMLElement_1.default,
|
99
|
+
MARK: HTMLElement_1.default,
|
100
|
+
MATH: HTMLElement_1.default,
|
101
|
+
MENU: HTMLElement_1.default,
|
102
|
+
MENUITEM: HTMLElement_1.default,
|
103
|
+
METER: HTMLElement_1.default,
|
104
|
+
NAV: HTMLElement_1.default,
|
105
|
+
NOSCRIPT: HTMLElement_1.default,
|
106
|
+
OBJECT: HTMLElement_1.default,
|
107
|
+
OL: HTMLElement_1.default,
|
108
|
+
OPTGROUP: HTMLElement_1.default,
|
109
|
+
OPTION: HTMLElement_1.default,
|
110
|
+
OUTPUT: HTMLElement_1.default,
|
111
|
+
P: HTMLElement_1.default,
|
112
|
+
PARAM: HTMLElement_1.default,
|
113
|
+
PICTURE: HTMLElement_1.default,
|
114
|
+
PRE: HTMLElement_1.default,
|
115
|
+
PROGRESS: HTMLElement_1.default,
|
116
|
+
Q: HTMLElement_1.default,
|
117
|
+
RB: HTMLElement_1.default,
|
118
|
+
RP: HTMLElement_1.default,
|
119
|
+
RT: HTMLElement_1.default,
|
120
|
+
RTC: HTMLElement_1.default,
|
121
|
+
RUBY: HTMLElement_1.default,
|
122
|
+
S: HTMLElement_1.default,
|
123
|
+
SAMP: HTMLElement_1.default,
|
124
|
+
SECTION: HTMLElement_1.default,
|
125
|
+
SELECT: HTMLElement_1.default,
|
126
|
+
SMALL: HTMLElement_1.default,
|
127
|
+
SOURCE: HTMLElement_1.default,
|
128
|
+
SPAN: HTMLElement_1.default,
|
129
|
+
STRONG: HTMLElement_1.default,
|
130
|
+
SUB: HTMLElement_1.default,
|
131
|
+
SUMMARY: HTMLElement_1.default,
|
132
|
+
SUP: HTMLElement_1.default,
|
133
|
+
TABLE: HTMLElement_1.default,
|
134
|
+
TBODY: HTMLElement_1.default,
|
135
|
+
TD: HTMLElement_1.default,
|
136
|
+
TFOOT: HTMLElement_1.default,
|
137
|
+
TH: HTMLElement_1.default,
|
138
|
+
THEAD: HTMLElement_1.default,
|
139
|
+
TIME: HTMLElement_1.default,
|
140
|
+
TITLE: HTMLElement_1.default,
|
141
|
+
TR: HTMLElement_1.default,
|
142
|
+
TRACK: HTMLElement_1.default,
|
143
|
+
U: HTMLElement_1.default,
|
144
|
+
UL: HTMLElement_1.default,
|
145
|
+
VAR: HTMLElement_1.default,
|
146
|
+
VIDEO: HTMLElement_1.default,
|
147
|
+
WBR: HTMLElement_1.default
|
41
148
|
};
|
42
149
|
//# sourceMappingURL=ElementTag.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ElementTag.js","sourceRoot":"","sources":["../../src/config/ElementTag.ts"],"names":[],"mappings":";;;;;AAAA,2GAAqF;AACrF,+FAAyE;AACzE,kGAA4E;AAC5E,4GAAsF;AACtF,qFAA+D;AAC/D,+EAAyD;AACzD,qGAA+E;AAC/E,kGAA4E;AAC5E,+FAAyE;AACzE,kGAA4E;AAC5E,kGAA4E;AAC5E,+FAAyE;AACzE,+FAAyE;AAEzE,kBAAe;IACd,QAAQ,EAAE,6BAAmB;IAC7B,IAAI,EAAE,yBAAe;IACrB,KAAK,EAAE,0BAAgB;IACvB,QAAQ,EAAE,6BAAmB;IAC7B,MAAM,EAAE,2BAAiB;IACzB,GAAG,EAAE,0BAAgB;IACrB,IAAI,EAAE,yBAAe;IACrB,KAAK,EAAE,0BAAgB;IACvB,KAAK,EAAE,0BAAgB;IACvB,IAAI,EAAE,yBAAe;IACrB,GAAG,EAAE,uBAAa;IAClB,MAAM,EAAE,oBAAU;IAClB,OAAO,EAAE,oBAAU;IACnB,IAAI,EAAE,oBAAU;IAChB,IAAI,EAAE,oBAAU;IAChB,OAAO,EAAE,oBAAU;IACnB,QAAQ,EAAE,oBAAU;IACpB,IAAI,EAAE,oBAAU;IAChB,IAAI,EAAE,oBAAU;IAChB,GAAG,EAAE,oBAAU;IACf,IAAI,EAAE,yBAAe;
|
1
|
+
{"version":3,"file":"ElementTag.js","sourceRoot":"","sources":["../../src/config/ElementTag.ts"],"names":[],"mappings":"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"}
|
@@ -0,0 +1,64 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.default = [
|
4
|
+
'HTMLHeadElement',
|
5
|
+
'HTMLTitleElement',
|
6
|
+
'HTMLBaseElement',
|
7
|
+
'HTMLMetaElement',
|
8
|
+
'HTMLBodyElement',
|
9
|
+
'HTMLHeadingElement',
|
10
|
+
'HTMLParagraphElement',
|
11
|
+
'HTMLHRElement',
|
12
|
+
'HTMLPreElement',
|
13
|
+
'HTMLUListElement',
|
14
|
+
'HTMLOListElement',
|
15
|
+
'HTMLLIElement',
|
16
|
+
'HTMLMenuElement',
|
17
|
+
'HTMLDListElement',
|
18
|
+
'HTMLDivElement',
|
19
|
+
'HTMLAnchorElement',
|
20
|
+
'HTMLAreaElement',
|
21
|
+
'HTMLBRElement',
|
22
|
+
'HTMLButtonElement',
|
23
|
+
'HTMLCanvasElement',
|
24
|
+
'HTMLDataElement',
|
25
|
+
'HTMLDataListElement',
|
26
|
+
'HTMLDetailsElement',
|
27
|
+
'HTMLDialogElement',
|
28
|
+
'HTMLDirectoryElement',
|
29
|
+
'HTMLFieldSetElement',
|
30
|
+
'HTMLFontElement',
|
31
|
+
'HTMLHtmlElement',
|
32
|
+
'HTMLLegendElement',
|
33
|
+
'HTMLMapElement',
|
34
|
+
'HTMLMarqueeElement',
|
35
|
+
'HTMLMediaElement',
|
36
|
+
'HTMLMeterElement',
|
37
|
+
'HTMLModElement',
|
38
|
+
'HTMLOptGroupElement',
|
39
|
+
'HTMLOptionElement',
|
40
|
+
'HTMLOutputElement',
|
41
|
+
'HTMLPictureElement',
|
42
|
+
'HTMLProgressElement',
|
43
|
+
'HTMLQuoteElement',
|
44
|
+
'HTMLSelectElement',
|
45
|
+
'HTMLSourceElement',
|
46
|
+
'HTMLSpanElement',
|
47
|
+
'HTMLTableCaptionElement',
|
48
|
+
'HTMLTableCellElement',
|
49
|
+
'HTMLTableColElement',
|
50
|
+
'HTMLTableElement',
|
51
|
+
'HTMLTimeElement',
|
52
|
+
'HTMLTableRowElement',
|
53
|
+
'HTMLTableSectionElement',
|
54
|
+
'HTMLFrameElement',
|
55
|
+
'HTMLFrameSetElement',
|
56
|
+
'HTMLIFrameElement',
|
57
|
+
'HTMLEmbedElement',
|
58
|
+
'HTMLObjectElement',
|
59
|
+
'HTMLParamElement',
|
60
|
+
'HTMLVideoElement',
|
61
|
+
'HTMLAudioElement',
|
62
|
+
'HTMLTrackElement'
|
63
|
+
];
|
64
|
+
//# sourceMappingURL=NonImplemenetedElementClasses.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"NonImplemenetedElementClasses.js","sourceRoot":"","sources":["../../src/config/NonImplemenetedElementClasses.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACd,iBAAiB;IACjB,kBAAkB;IAClB,iBAAiB;IACjB,iBAAiB;IACjB,iBAAiB;IACjB,oBAAoB;IACpB,sBAAsB;IACtB,eAAe;IACf,gBAAgB;IAChB,kBAAkB;IAClB,kBAAkB;IAClB,eAAe;IACf,iBAAiB;IACjB,kBAAkB;IAClB,gBAAgB;IAChB,mBAAmB;IACnB,iBAAiB;IACjB,eAAe;IACf,mBAAmB;IACnB,mBAAmB;IACnB,iBAAiB;IACjB,qBAAqB;IACrB,oBAAoB;IACpB,mBAAmB;IACnB,sBAAsB;IACtB,qBAAqB;IACrB,iBAAiB;IACjB,iBAAiB;IACjB,mBAAmB;IACnB,gBAAgB;IAChB,oBAAoB;IACpB,kBAAkB;IAClB,kBAAkB;IAClB,gBAAgB;IAChB,qBAAqB;IACrB,mBAAmB;IACnB,mBAAmB;IACnB,oBAAoB;IACpB,qBAAqB;IACrB,kBAAkB;IAClB,mBAAmB;IACnB,mBAAmB;IACnB,iBAAiB;IACjB,yBAAyB;IACzB,sBAAsB;IACtB,qBAAqB;IACrB,kBAAkB;IAClB,iBAAiB;IACjB,qBAAqB;IACrB,yBAAyB;IACzB,kBAAkB;IAClB,qBAAqB;IACrB,mBAAmB;IACnB,kBAAkB;IAClB,mBAAmB;IACnB,kBAAkB;IAClB,kBAAkB;IAClB,kBAAkB;IAClB,kBAAkB;CAClB,CAAC"}
|
@@ -21,13 +21,13 @@ var CustomElementRegistry = /** @class */ (function () {
|
|
21
21
|
* @param options.extends
|
22
22
|
*/
|
23
23
|
CustomElementRegistry.prototype.define = function (tagName, elementClass, options) {
|
24
|
-
var
|
25
|
-
if (!
|
24
|
+
var upperTagName = tagName.toUpperCase();
|
25
|
+
if (!upperTagName.includes('-')) {
|
26
26
|
throw new DOMException_1.default("Failed to execute 'define' on 'CustomElementRegistry': \"" +
|
27
|
-
|
27
|
+
tagName +
|
28
28
|
'" is not a valid custom element name.');
|
29
29
|
}
|
30
|
-
this._registry[
|
30
|
+
this._registry[upperTagName] = {
|
31
31
|
elementClass: elementClass,
|
32
32
|
extends: options && options.extends ? options.extends.toLowerCase() : null
|
33
33
|
};
|
@@ -35,12 +35,13 @@ var CustomElementRegistry = /** @class */ (function () {
|
|
35
35
|
if (elementClass.prototype.attributeChangedCallback) {
|
36
36
|
elementClass._observedAttributes = elementClass.observedAttributes;
|
37
37
|
}
|
38
|
-
if (this._callbacks[
|
39
|
-
|
40
|
-
|
38
|
+
if (this._callbacks[upperTagName]) {
|
39
|
+
var callbacks = this._callbacks[upperTagName];
|
40
|
+
delete this._callbacks[upperTagName];
|
41
|
+
for (var _i = 0, callbacks_1 = callbacks; _i < callbacks_1.length; _i++) {
|
42
|
+
var callback = callbacks_1[_i];
|
41
43
|
callback();
|
42
44
|
}
|
43
|
-
delete this._callbacks[name];
|
44
45
|
}
|
45
46
|
};
|
46
47
|
/**
|
@@ -50,8 +51,8 @@ var CustomElementRegistry = /** @class */ (function () {
|
|
50
51
|
* @param HTMLElement Class defined.
|
51
52
|
*/
|
52
53
|
CustomElementRegistry.prototype.get = function (tagName) {
|
53
|
-
var
|
54
|
-
return this._registry[
|
54
|
+
var upperTagName = tagName.toUpperCase();
|
55
|
+
return this._registry[upperTagName] ? this._registry[upperTagName].elementClass : undefined;
|
55
56
|
};
|
56
57
|
/**
|
57
58
|
* Upgrades a custom element directly, even before it is connected to its shadow root.
|
@@ -71,13 +72,13 @@ var CustomElementRegistry = /** @class */ (function () {
|
|
71
72
|
*/
|
72
73
|
CustomElementRegistry.prototype.whenDefined = function (tagName) {
|
73
74
|
var _this = this;
|
74
|
-
var
|
75
|
-
if (this.get(
|
75
|
+
var upperTagName = tagName.toUpperCase();
|
76
|
+
if (this.get(upperTagName)) {
|
76
77
|
return Promise.resolve();
|
77
78
|
}
|
78
79
|
return new Promise(function (resolve) {
|
79
|
-
_this._callbacks[
|
80
|
-
_this._callbacks[
|
80
|
+
_this._callbacks[upperTagName] = _this._callbacks[upperTagName] || [];
|
81
|
+
_this._callbacks[upperTagName].push(resolve);
|
81
82
|
});
|
82
83
|
};
|
83
84
|
return CustomElementRegistry;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CustomElementRegistry.js","sourceRoot":"","sources":["../../src/custom-element/CustomElementRegistry.ts"],"names":[],"mappings":";;;;;AAAA,2EAAqD;AAIrD;;GAEG;AACH;IAAA;QACQ,cAAS,GAA2E,EAAE,CAAC;
|
1
|
+
{"version":3,"file":"CustomElementRegistry.js","sourceRoot":"","sources":["../../src/custom-element/CustomElementRegistry.ts"],"names":[],"mappings":";;;;;AAAA,2EAAqD;AAIrD;;GAEG;AACH;IAAA;QACQ,cAAS,GAA2E,EAAE,CAAC;QACvF,eAAU,GAAoC,EAAE,CAAC;IAkFzD,CAAC;IAhFA;;;;;;;OAOG;IACI,sCAAM,GAAb,UACC,OAAe,EACf,YAAgC,EAChC,OAA6B;QAE7B,IAAM,YAAY,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;QAE3C,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YAChC,MAAM,IAAI,sBAAY,CACrB,2DAA2D;gBAC1D,OAAO;gBACP,uCAAuC,CACxC,CAAC;SACF;QAED,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,GAAG;YAC9B,YAAY,cAAA;YACZ,OAAO,EAAE,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,IAAI;SAC1E,CAAC;QAEF,oFAAoF;QACpF,IAAI,YAAY,CAAC,SAAS,CAAC,wBAAwB,EAAE;YACpD,YAAY,CAAC,mBAAmB,GAAG,YAAY,CAAC,kBAAkB,CAAC;SACnE;QAED,IAAI,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE;YAClC,IAAM,SAAS,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;YAChD,OAAO,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;YACrC,KAAuB,UAAS,EAAT,uBAAS,EAAT,uBAAS,EAAT,IAAS,EAAE;gBAA7B,IAAM,QAAQ,kBAAA;gBAClB,QAAQ,EAAE,CAAC;aACX;SACD;IACF,CAAC;IAED;;;;;OAKG;IACI,mCAAG,GAAV,UAAW,OAAe;QACzB,IAAM,YAAY,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;QAC3C,OAAO,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;IAC7F,CAAC;IAED;;;;;;OAMG;IACI,uCAAO,GAAd,UAAe,KAAW;QACzB,aAAa;IACd,CAAC;IAED;;;;;OAKG;IACI,2CAAW,GAAlB,UAAmB,OAAe;QAAlC,iBASC;QARA,IAAM,YAAY,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;QAC3C,IAAI,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE;YAC3B,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;SACzB;QACD,OAAO,IAAI,OAAO,CAAC,UAAA,OAAO;YACzB,KAAI,CAAC,UAAU,CAAC,YAAY,CAAC,GAAG,KAAI,CAAC,UAAU,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC;YACpE,KAAI,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7C,CAAC,CAAC,CAAC;IACJ,CAAC;IACF,4BAAC;AAAD,CAAC,AApFD,IAoFC"}
|
package/lib/index.d.ts
CHANGED
@@ -99,12 +99,8 @@ import TreeWalker from './tree-walker/TreeWalker';
|
|
99
99
|
import CustomElementRegistry from './custom-element/CustomElementRegistry';
|
100
100
|
import XMLParser from './xml-parser/XMLParser';
|
101
101
|
import XMLSerializer from './xml-serializer/XMLSerializer';
|
102
|
-
import ElementTag from './config/ElementTag';
|
103
|
-
import SelfClosingElements from './config/SelfClosingElements';
|
104
|
-
import UnclosedElements from './config/UnclosedElements';
|
105
|
-
import ChildLessElements from './config/ChildLessElements';
|
106
102
|
import CSSStyleSheet from './css/CSSStyleSheet';
|
107
103
|
import Storage from './storage/Storage';
|
108
104
|
import URLSearchParams from './url-search-params/URLSearchParams';
|
109
105
|
import Selection from './selection/Selection';
|
110
|
-
export { AsyncWindow, Window, IWindow, DataTransfer, DataTransferItem, DataTransferItemList, URL, Location, MutationObserver, ResizeObserver, Blob, File, FileReader, DOMException, History, CSSStyleDeclaration, Screen, AsyncTaskManager, IResponse, IFetchOptions, NodeFilter, Event, EventTarget, IEventInit, IEventListener, IUIEventInit, UIEvent, ErrorEvent, FocusEvent, AnimationEvent, IAnimationEventInit, ICustomEventInit, CustomEvent, IErrorEventInit, IFocusEventInit, IInputEventInit, IKeyboardEventInit, IMouseEventInit, IProgressEventInit, IWheelEventInit, InputEvent, KeyboardEvent, MouseEvent, ProgressEvent, WheelEvent, DOMParser, Document, IDocument, HTMLDocument, XMLDocument, SVGDocument, Element, IElement, IHTMLCollection, HTMLElement, IHTMLElement, HTMLTemplateElement, IHTMLTemplateElement, HTMLFormElement, IHTMLFormElement, HTMLInputElement, IHTMLInputElement, HTMLTextAreaElement, IHTMLTextAreaElement, HTMLImageElement, IHTMLImageElement, Image, HTMLScriptElement, HTMLLinkElement, IHTMLLinkElement, HTMLStyleElement, IHTMLStyleElement, HTMLSlotElement, IHTMLSlotElement, HTMLLabelElement, IHTMLLabelElement, HTMLMetaElement, IHTMLMetaElement, SVGElement, ISVGElement, SVGGraphicsElement, ISVGGraphicsElement, SVGSVGElement, ISVGSVGElement, DocumentFragment, IDocumentFragment, ShadowRoot, IShadowRoot, Node, INode, INodeList, Text, IText, Comment, IComment, DocumentType, IDocumentType, TreeWalker, CustomElementRegistry, XMLParser, XMLSerializer,
|
106
|
+
export { AsyncWindow, Window, IWindow, DataTransfer, DataTransferItem, DataTransferItemList, URL, Location, MutationObserver, ResizeObserver, Blob, File, FileReader, DOMException, History, CSSStyleDeclaration, Screen, AsyncTaskManager, IResponse, IFetchOptions, NodeFilter, Event, EventTarget, IEventInit, IEventListener, IUIEventInit, UIEvent, ErrorEvent, FocusEvent, AnimationEvent, IAnimationEventInit, ICustomEventInit, CustomEvent, IErrorEventInit, IFocusEventInit, IInputEventInit, IKeyboardEventInit, IMouseEventInit, IProgressEventInit, IWheelEventInit, InputEvent, KeyboardEvent, MouseEvent, ProgressEvent, WheelEvent, DOMParser, Document, IDocument, HTMLDocument, XMLDocument, SVGDocument, Element, IElement, IHTMLCollection, HTMLElement, IHTMLElement, HTMLTemplateElement, IHTMLTemplateElement, HTMLFormElement, IHTMLFormElement, HTMLInputElement, IHTMLInputElement, HTMLTextAreaElement, IHTMLTextAreaElement, HTMLImageElement, IHTMLImageElement, Image, HTMLScriptElement, HTMLLinkElement, IHTMLLinkElement, HTMLStyleElement, IHTMLStyleElement, HTMLSlotElement, IHTMLSlotElement, HTMLLabelElement, IHTMLLabelElement, HTMLMetaElement, IHTMLMetaElement, SVGElement, ISVGElement, SVGGraphicsElement, ISVGGraphicsElement, SVGSVGElement, ISVGSVGElement, DocumentFragment, IDocumentFragment, ShadowRoot, IShadowRoot, Node, INode, INodeList, Text, IText, Comment, IComment, DocumentType, IDocumentType, TreeWalker, CustomElementRegistry, XMLParser, XMLSerializer, CSSStyleSheet, Storage, URLSearchParams, Selection };
|