happy-dom 7.1.1 → 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.

Files changed (42) hide show
  1. package/lib/config/ElementTag.d.ts +4 -2
  2. package/lib/config/ElementTag.js +4 -2
  3. package/lib/config/ElementTag.js.map +1 -1
  4. package/lib/config/NonImplemenetedElementClasses.js +0 -3
  5. package/lib/config/NonImplemenetedElementClasses.js.map +1 -1
  6. package/lib/index.d.ts +7 -1
  7. package/lib/index.js +8 -2
  8. package/lib/index.js.map +1 -1
  9. package/lib/nodes/html-audio-element/HTMLAudioElement.d.ts +11 -0
  10. package/lib/nodes/html-audio-element/HTMLAudioElement.js +17 -0
  11. package/lib/nodes/html-audio-element/HTMLAudioElement.js.map +1 -0
  12. package/lib/nodes/html-audio-element/IHTMLAudioElement.d.ts +9 -0
  13. package/lib/nodes/html-audio-element/IHTMLAudioElement.js +3 -0
  14. package/lib/nodes/html-audio-element/IHTMLAudioElement.js.map +1 -0
  15. package/lib/nodes/html-media-element/HTMLMediaElement.d.ts +234 -0
  16. package/lib/nodes/html-media-element/HTMLMediaElement.js +418 -0
  17. package/lib/nodes/html-media-element/HTMLMediaElement.js.map +1 -0
  18. package/lib/nodes/html-media-element/IHTMLMediaElement.d.ts +76 -0
  19. package/lib/nodes/html-media-element/IHTMLMediaElement.js +3 -0
  20. package/lib/nodes/html-media-element/IHTMLMediaElement.js.map +1 -0
  21. package/lib/nodes/html-video-element/HTMLVideoElement.d.ts +11 -0
  22. package/lib/nodes/html-video-element/HTMLVideoElement.js +17 -0
  23. package/lib/nodes/html-video-element/HTMLVideoElement.js.map +1 -0
  24. package/lib/nodes/html-video-element/IHTMLVideoElement.d.ts +9 -0
  25. package/lib/nodes/html-video-element/IHTMLVideoElement.js +3 -0
  26. package/lib/nodes/html-video-element/IHTMLVideoElement.js.map +1 -0
  27. package/lib/window/IWindow.d.ts +6 -0
  28. package/lib/window/Window.d.ts +6 -0
  29. package/lib/window/Window.js +6 -0
  30. package/lib/window/Window.js.map +1 -1
  31. package/package.json +2 -2
  32. package/src/config/ElementTag.ts +4 -2
  33. package/src/config/NonImplemenetedElementClasses.ts +0 -3
  34. package/src/index.ts +12 -0
  35. package/src/nodes/html-audio-element/HTMLAudioElement.ts +11 -0
  36. package/src/nodes/html-audio-element/IHTMLAudioElement.ts +11 -0
  37. package/src/nodes/html-media-element/HTMLMediaElement.ts +441 -0
  38. package/src/nodes/html-media-element/IHTMLMediaElement.ts +84 -0
  39. package/src/nodes/html-video-element/HTMLVideoElement.ts +11 -0
  40. package/src/nodes/html-video-element/IHTMLVideoElement.ts +11 -0
  41. package/src/window/IWindow.ts +6 -0
  42. 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;
@@ -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;
@@ -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;