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

Files changed (72) hide show
  1. package/lib/nodes/document/IDocument.d.ts +1 -1
  2. package/lib/nodes/document/IDocument.d.ts.map +1 -1
  3. package/lib/nodes/document-fragment/IDocumentFragment.d.ts +1 -1
  4. package/lib/nodes/document-fragment/IDocumentFragment.d.ts.map +1 -1
  5. package/lib/nodes/document-type/IDocumentType.d.ts +1 -1
  6. package/lib/nodes/document-type/IDocumentType.d.ts.map +1 -1
  7. package/lib/nodes/element/IElement.d.ts +1 -1
  8. package/lib/nodes/element/IElement.d.ts.map +1 -1
  9. package/lib/nodes/html-base-element/IHTMLBaseElement.d.ts +1 -1
  10. package/lib/nodes/html-base-element/IHTMLBaseElement.d.ts.map +1 -1
  11. package/lib/nodes/html-element/IHTMLElement.d.ts +1 -1
  12. package/lib/nodes/html-element/IHTMLElement.d.ts.map +1 -1
  13. package/lib/nodes/html-form-element/IHTMLFormElement.d.ts +1 -1
  14. package/lib/nodes/html-form-element/IHTMLFormElement.d.ts.map +1 -1
  15. package/lib/nodes/html-image-element/IHTMLImageElement.d.ts +1 -1
  16. package/lib/nodes/html-image-element/IHTMLImageElement.d.ts.map +1 -1
  17. package/lib/nodes/html-input-element/IHTMLInputElement.d.ts +1 -1
  18. package/lib/nodes/html-input-element/IHTMLInputElement.d.ts.map +1 -1
  19. package/lib/nodes/html-media-element/IHTMLMediaElement.d.ts +1 -1
  20. package/lib/nodes/html-media-element/IHTMLMediaElement.d.ts.map +1 -1
  21. package/lib/nodes/html-script-element/IHTMLScriptElement.d.ts +1 -1
  22. package/lib/nodes/html-script-element/IHTMLScriptElement.d.ts.map +1 -1
  23. package/lib/nodes/html-slot-element/IHTMLSlotElement.d.ts +1 -1
  24. package/lib/nodes/html-slot-element/IHTMLSlotElement.d.ts.map +1 -1
  25. package/lib/nodes/html-template-element/IHTMLTemplateElement.d.ts +1 -1
  26. package/lib/nodes/html-template-element/IHTMLTemplateElement.d.ts.map +1 -1
  27. package/lib/nodes/html-text-area-element/IHTMLTextAreaElement.d.ts +1 -1
  28. package/lib/nodes/html-text-area-element/IHTMLTextAreaElement.d.ts.map +1 -1
  29. package/lib/nodes/node/INode.d.ts +2 -1
  30. package/lib/nodes/node/INode.d.ts.map +1 -1
  31. package/lib/nodes/node/Node.d.ts +7 -0
  32. package/lib/nodes/node/Node.d.ts.map +1 -1
  33. package/lib/nodes/node/Node.js +30 -0
  34. package/lib/nodes/node/Node.js.map +1 -1
  35. package/lib/nodes/node/NodeUtility.d.ts +10 -2
  36. package/lib/nodes/node/NodeUtility.d.ts.map +1 -1
  37. package/lib/nodes/node/NodeUtility.js +11 -2
  38. package/lib/nodes/node/NodeUtility.js.map +1 -1
  39. package/lib/nodes/shadow-root/IShadowRoot.d.ts +2 -1
  40. package/lib/nodes/shadow-root/IShadowRoot.d.ts.map +1 -1
  41. package/lib/nodes/shadow-root/ShadowRoot.d.ts +1 -1
  42. package/lib/nodes/shadow-root/ShadowRoot.d.ts.map +1 -1
  43. package/lib/nodes/svg-element/ISVGSVGElement.d.ts +1 -1
  44. package/lib/nodes/svg-element/ISVGSVGElement.d.ts.map +1 -1
  45. package/lib/range/Range.js +3 -3
  46. package/lib/range/Range.js.map +1 -1
  47. package/lib/window/Window.d.ts +2 -1
  48. package/lib/window/Window.d.ts.map +1 -1
  49. package/lib/window/Window.js.map +1 -1
  50. package/package.json +1 -1
  51. package/src/nodes/document/IDocument.ts +1 -1
  52. package/src/nodes/document-fragment/IDocumentFragment.ts +1 -1
  53. package/src/nodes/document-type/IDocumentType.ts +1 -1
  54. package/src/nodes/element/IElement.ts +1 -1
  55. package/src/nodes/html-base-element/IHTMLBaseElement.ts +1 -1
  56. package/src/nodes/html-element/IHTMLElement.ts +1 -1
  57. package/src/nodes/html-form-element/IHTMLFormElement.ts +1 -1
  58. package/src/nodes/html-image-element/IHTMLImageElement.ts +1 -1
  59. package/src/nodes/html-input-element/IHTMLInputElement.ts +1 -1
  60. package/src/nodes/html-media-element/IHTMLMediaElement.ts +1 -1
  61. package/src/nodes/html-script-element/IHTMLScriptElement.ts +1 -1
  62. package/src/nodes/html-slot-element/IHTMLSlotElement.ts +1 -1
  63. package/src/nodes/html-template-element/IHTMLTemplateElement.ts +1 -1
  64. package/src/nodes/html-text-area-element/IHTMLTextAreaElement.ts +1 -1
  65. package/src/nodes/node/INode.ts +2 -1
  66. package/src/nodes/node/Node.ts +30 -0
  67. package/src/nodes/node/NodeUtility.ts +12 -2
  68. package/src/nodes/shadow-root/IShadowRoot.ts +2 -1
  69. package/src/nodes/shadow-root/ShadowRoot.ts +1 -1
  70. package/src/nodes/svg-element/ISVGSVGElement.ts +1 -1
  71. package/src/range/Range.ts +3 -3
  72. package/src/window/Window.ts +8 -8
@@ -23,7 +23,7 @@ import HTMLLabelElement from '../nodes/html-label-element/HTMLLabelElement';
23
23
  import HTMLMetaElement from '../nodes/html-meta-element/HTMLMetaElement';
24
24
  import HTMLMediaElement from '../nodes/html-media-element/HTMLMediaElement';
25
25
  import HTMLAudioElement from '../nodes/html-audio-element/HTMLAudioElement';
26
- import { default as AudioImplementation } from '../nodes/html-audio-element/Audio';
26
+ import AudioImplementation from '../nodes/html-audio-element/Audio';
27
27
  import HTMLVideoElement from '../nodes/html-video-element/HTMLVideoElement';
28
28
  import HTMLBaseElement from '../nodes/html-base-element/HTMLBaseElement';
29
29
  import HTMLIFrameElement from '../nodes/html-iframe-element/HTMLIFrameElement';
@@ -33,7 +33,7 @@ import SVGElement from '../nodes/svg-element/SVGElement';
33
33
  import SVGGraphicsElement from '../nodes/svg-element/SVGGraphicsElement';
34
34
  import HTMLScriptElement from '../nodes/html-script-element/HTMLScriptElement';
35
35
  import HTMLImageElement from '../nodes/html-image-element/HTMLImageElement';
36
- import { default as ImageImplementation } from '../nodes/html-image-element/Image';
36
+ import ImageImplementation from '../nodes/html-image-element/Image';
37
37
  import DocumentFragment from '../nodes/document-fragment/DocumentFragment';
38
38
  import CharacterData from '../nodes/character-data/CharacterData';
39
39
  import NodeIterator from '../tree-walker/NodeIterator';
@@ -52,13 +52,13 @@ import Location from '../location/Location';
52
52
  import NonImplementedEventTypes from '../event/NonImplementedEventTypes';
53
53
  import MutationObserver from '../mutation-observer/MutationObserver';
54
54
  import NonImplemenetedElementClasses from '../config/NonImplemenetedElementClasses';
55
- import { default as DOMParserImplementation } from '../dom-parser/DOMParser';
55
+ import DOMParserImplementation from '../dom-parser/DOMParser';
56
56
  import XMLSerializer from '../xml-serializer/XMLSerializer';
57
57
  import ResizeObserver from '../resize-observer/ResizeObserver';
58
58
  import Blob from '../file/Blob';
59
59
  import File from '../file/File';
60
60
  import DOMException from '../exception/DOMException';
61
- import { default as FileReaderImplementation } from '../file/FileReader';
61
+ import FileReaderImplementation from '../file/FileReader';
62
62
  import History from '../history/History';
63
63
  import CSSStyleSheet from '../css/CSSStyleSheet';
64
64
  import CSSStyleDeclaration from '../css/declaration/CSSStyleDeclaration';
@@ -93,8 +93,8 @@ import IRequestInit from '../fetch/types/IRequestInit';
93
93
  import IHeaders from '../fetch/types/IHeaders';
94
94
  import IHeadersInit from '../fetch/types/IHeadersInit';
95
95
  import Headers from '../fetch/Headers';
96
- import { default as RequestImplementation } from '../fetch/Request';
97
- import { default as ResponseImplementation } from '../fetch/Response';
96
+ import RequestImplementation from '../fetch/Request';
97
+ import ResponseImplementation from '../fetch/Response';
98
98
  import Storage from '../storage/Storage';
99
99
  import IWindow from './IWindow';
100
100
  import HTMLCollection from '../nodes/element/HTMLCollection';
@@ -108,7 +108,7 @@ import MimeTypeArray from '../navigator/MimeTypeArray';
108
108
  import Plugin from '../navigator/Plugin';
109
109
  import PluginArray from '../navigator/PluginArray';
110
110
  import Fetch from '../fetch/Fetch';
111
- import { default as RangeImplementation } from '../range/Range';
111
+ import RangeImplementation from '../range/Range';
112
112
  import DOMRect from '../nodes/element/DOMRect';
113
113
  import VMGlobalPropertyScript from './VMGlobalPropertyScript';
114
114
  import * as PerfHooks from 'perf_hooks';
@@ -296,7 +296,7 @@ export default class Window extends EventTarget implements IWindow {
296
296
  public readonly AbortSignal = AbortSignal;
297
297
  public readonly FormData = FormData;
298
298
  public readonly XMLHttpRequest;
299
- public readonly DOMParser;
299
+ public readonly DOMParser: typeof DOMParserImplementation;
300
300
  public readonly Range;
301
301
  public readonly FileReader;
302
302
  public readonly Image;