happy-dom 7.1.0 → 7.2.0
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/lib/config/ElementTag.d.ts +4 -2
- package/lib/config/ElementTag.js +4 -2
- package/lib/config/ElementTag.js.map +1 -1
- package/lib/config/NonImplemenetedElementClasses.js +0 -3
- package/lib/config/NonImplemenetedElementClasses.js.map +1 -1
- package/lib/index.d.ts +7 -1
- package/lib/index.js +8 -2
- package/lib/index.js.map +1 -1
- package/lib/nodes/html-audio-element/HTMLAudioElement.d.ts +11 -0
- package/lib/nodes/html-audio-element/HTMLAudioElement.js +17 -0
- package/lib/nodes/html-audio-element/HTMLAudioElement.js.map +1 -0
- package/lib/nodes/html-audio-element/IHTMLAudioElement.d.ts +9 -0
- package/lib/nodes/html-audio-element/IHTMLAudioElement.js +3 -0
- package/lib/nodes/html-audio-element/IHTMLAudioElement.js.map +1 -0
- package/lib/nodes/html-media-element/HTMLMediaElement.d.ts +234 -0
- package/lib/nodes/html-media-element/HTMLMediaElement.js +418 -0
- package/lib/nodes/html-media-element/HTMLMediaElement.js.map +1 -0
- package/lib/nodes/html-media-element/IHTMLMediaElement.d.ts +76 -0
- package/lib/nodes/html-media-element/IHTMLMediaElement.js +3 -0
- package/lib/nodes/html-media-element/IHTMLMediaElement.js.map +1 -0
- package/lib/nodes/html-video-element/HTMLVideoElement.d.ts +11 -0
- package/lib/nodes/html-video-element/HTMLVideoElement.js +17 -0
- package/lib/nodes/html-video-element/HTMLVideoElement.js.map +1 -0
- package/lib/nodes/html-video-element/IHTMLVideoElement.d.ts +9 -0
- package/lib/nodes/html-video-element/IHTMLVideoElement.js +3 -0
- package/lib/nodes/html-video-element/IHTMLVideoElement.js.map +1 -0
- package/lib/window/IWindow.d.ts +6 -0
- package/lib/window/Window.d.ts +6 -0
- package/lib/window/Window.js +6 -0
- package/lib/window/Window.js.map +1 -1
- package/package.json +2 -2
- package/src/config/ElementTag.ts +4 -2
- package/src/config/NonImplemenetedElementClasses.ts +0 -3
- package/src/index.ts +12 -0
- package/src/nodes/html-audio-element/HTMLAudioElement.ts +11 -0
- package/src/nodes/html-audio-element/IHTMLAudioElement.ts +11 -0
- package/src/nodes/html-media-element/HTMLMediaElement.ts +441 -0
- package/src/nodes/html-media-element/IHTMLMediaElement.ts +84 -0
- package/src/nodes/html-video-element/HTMLVideoElement.ts +11 -0
- package/src/nodes/html-video-element/IHTMLVideoElement.ts +11 -0
- package/src/window/IWindow.ts +6 -0
- package/src/window/Window.ts +6 -0
@@ -0,0 +1,11 @@
|
|
1
|
+
import IHTMLMediaElement from '../html-media-element/IHTMLMediaElement';
|
2
|
+
|
3
|
+
/**
|
4
|
+
* HTML Video Element.
|
5
|
+
*
|
6
|
+
* Reference:
|
7
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement.
|
8
|
+
*/
|
9
|
+
|
10
|
+
type IHTMLVideoElement = IHTMLMediaElement;
|
11
|
+
export default IHTMLVideoElement;
|
package/src/window/IWindow.ts
CHANGED
@@ -19,6 +19,9 @@ import HTMLStyleElement from '../nodes/html-style-element/HTMLStyleElement';
|
|
19
19
|
import HTMLSlotElement from '../nodes/html-slot-element/HTMLSlotElement';
|
20
20
|
import HTMLLabelElement from '../nodes/html-label-element/HTMLLabelElement';
|
21
21
|
import HTMLMetaElement from '../nodes/html-meta-element/HTMLMetaElement';
|
22
|
+
import HTMLMediaElement from '../nodes/html-media-element/HTMLMediaElement';
|
23
|
+
import HTMLAudioElement from '../nodes/html-audio-element/HTMLAudioElement';
|
24
|
+
import HTMLVideoElement from '../nodes/html-video-element/HTMLVideoElement';
|
22
25
|
import HTMLBaseElement from '../nodes/html-base-element/HTMLBaseElement';
|
23
26
|
import SVGSVGElement from '../nodes/svg-element/SVGSVGElement';
|
24
27
|
import SVGElement from '../nodes/svg-element/SVGElement';
|
@@ -124,6 +127,9 @@ export default interface IWindow extends IEventTarget, NodeJS.Global {
|
|
124
127
|
readonly HTMLSlotElement: typeof HTMLSlotElement;
|
125
128
|
readonly HTMLLabelElement: typeof HTMLLabelElement;
|
126
129
|
readonly HTMLMetaElement: typeof HTMLMetaElement;
|
130
|
+
readonly HTMLMediaElement: typeof HTMLMediaElement;
|
131
|
+
readonly HTMLAudioElement: typeof HTMLAudioElement;
|
132
|
+
readonly HTMLVideoElement: typeof HTMLVideoElement;
|
127
133
|
readonly HTMLBaseElement: typeof HTMLBaseElement;
|
128
134
|
readonly HTMLDialogElement: typeof HTMLDialogElement;
|
129
135
|
readonly Attr: typeof Attr;
|
package/src/window/Window.ts
CHANGED
@@ -20,6 +20,9 @@ import HTMLStyleElement from '../nodes/html-style-element/HTMLStyleElement';
|
|
20
20
|
import HTMLSlotElement from '../nodes/html-slot-element/HTMLSlotElement';
|
21
21
|
import HTMLLabelElement from '../nodes/html-label-element/HTMLLabelElement';
|
22
22
|
import HTMLMetaElement from '../nodes/html-meta-element/HTMLMetaElement';
|
23
|
+
import HTMLMediaElement from '../nodes/html-media-element/HTMLMediaElement';
|
24
|
+
import HTMLAudioElement from '../nodes/html-audio-element/HTMLAudioElement';
|
25
|
+
import HTMLVideoElement from '../nodes/html-video-element/HTMLVideoElement';
|
23
26
|
import HTMLBaseElement from '../nodes/html-base-element/HTMLBaseElement';
|
24
27
|
import HTMLDialogElement from '../nodes/html-dialog-element/HTMLDialogElement';
|
25
28
|
import SVGSVGElement from '../nodes/svg-element/SVGSVGElement';
|
@@ -157,6 +160,9 @@ export default class Window extends EventTarget implements IWindow {
|
|
157
160
|
public readonly HTMLLabelElement = HTMLLabelElement;
|
158
161
|
public readonly HTMLSlotElement = HTMLSlotElement;
|
159
162
|
public readonly HTMLMetaElement = HTMLMetaElement;
|
163
|
+
public readonly HTMLMediaElement = HTMLMediaElement;
|
164
|
+
public readonly HTMLAudioElement = HTMLAudioElement;
|
165
|
+
public readonly HTMLVideoElement = HTMLVideoElement;
|
160
166
|
public readonly HTMLBaseElement = HTMLBaseElement;
|
161
167
|
public readonly HTMLDialogElement = HTMLDialogElement;
|
162
168
|
public readonly Attr = Attr;
|