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.
- package/lib/nodes/document/IDocument.d.ts +1 -1
- package/lib/nodes/document/IDocument.d.ts.map +1 -1
- package/lib/nodes/document-fragment/IDocumentFragment.d.ts +1 -1
- package/lib/nodes/document-fragment/IDocumentFragment.d.ts.map +1 -1
- package/lib/nodes/document-type/IDocumentType.d.ts +1 -1
- package/lib/nodes/document-type/IDocumentType.d.ts.map +1 -1
- package/lib/nodes/element/IElement.d.ts +1 -1
- package/lib/nodes/element/IElement.d.ts.map +1 -1
- package/lib/nodes/html-base-element/IHTMLBaseElement.d.ts +1 -1
- package/lib/nodes/html-base-element/IHTMLBaseElement.d.ts.map +1 -1
- package/lib/nodes/html-element/IHTMLElement.d.ts +1 -1
- package/lib/nodes/html-element/IHTMLElement.d.ts.map +1 -1
- package/lib/nodes/html-form-element/IHTMLFormElement.d.ts +1 -1
- package/lib/nodes/html-form-element/IHTMLFormElement.d.ts.map +1 -1
- package/lib/nodes/html-image-element/IHTMLImageElement.d.ts +1 -1
- package/lib/nodes/html-image-element/IHTMLImageElement.d.ts.map +1 -1
- package/lib/nodes/html-input-element/IHTMLInputElement.d.ts +1 -1
- package/lib/nodes/html-input-element/IHTMLInputElement.d.ts.map +1 -1
- package/lib/nodes/html-media-element/IHTMLMediaElement.d.ts +1 -1
- package/lib/nodes/html-media-element/IHTMLMediaElement.d.ts.map +1 -1
- package/lib/nodes/html-script-element/IHTMLScriptElement.d.ts +1 -1
- package/lib/nodes/html-script-element/IHTMLScriptElement.d.ts.map +1 -1
- package/lib/nodes/html-slot-element/IHTMLSlotElement.d.ts +1 -1
- package/lib/nodes/html-slot-element/IHTMLSlotElement.d.ts.map +1 -1
- package/lib/nodes/html-template-element/IHTMLTemplateElement.d.ts +1 -1
- package/lib/nodes/html-template-element/IHTMLTemplateElement.d.ts.map +1 -1
- package/lib/nodes/html-text-area-element/IHTMLTextAreaElement.d.ts +1 -1
- package/lib/nodes/html-text-area-element/IHTMLTextAreaElement.d.ts.map +1 -1
- package/lib/nodes/node/INode.d.ts +2 -1
- package/lib/nodes/node/INode.d.ts.map +1 -1
- package/lib/nodes/node/Node.d.ts +7 -0
- package/lib/nodes/node/Node.d.ts.map +1 -1
- package/lib/nodes/node/Node.js +30 -0
- package/lib/nodes/node/Node.js.map +1 -1
- package/lib/nodes/node/NodeUtility.d.ts +10 -2
- package/lib/nodes/node/NodeUtility.d.ts.map +1 -1
- package/lib/nodes/node/NodeUtility.js +11 -2
- package/lib/nodes/node/NodeUtility.js.map +1 -1
- package/lib/nodes/shadow-root/IShadowRoot.d.ts +2 -1
- package/lib/nodes/shadow-root/IShadowRoot.d.ts.map +1 -1
- package/lib/nodes/shadow-root/ShadowRoot.d.ts +1 -1
- package/lib/nodes/shadow-root/ShadowRoot.d.ts.map +1 -1
- package/lib/nodes/svg-element/ISVGSVGElement.d.ts +1 -1
- package/lib/nodes/svg-element/ISVGSVGElement.d.ts.map +1 -1
- package/lib/range/Range.js +3 -3
- package/lib/range/Range.js.map +1 -1
- package/lib/window/Window.d.ts +2 -1
- package/lib/window/Window.d.ts.map +1 -1
- package/lib/window/Window.js.map +1 -1
- package/package.json +1 -1
- package/src/nodes/document/IDocument.ts +1 -1
- package/src/nodes/document-fragment/IDocumentFragment.ts +1 -1
- package/src/nodes/document-type/IDocumentType.ts +1 -1
- package/src/nodes/element/IElement.ts +1 -1
- package/src/nodes/html-base-element/IHTMLBaseElement.ts +1 -1
- package/src/nodes/html-element/IHTMLElement.ts +1 -1
- package/src/nodes/html-form-element/IHTMLFormElement.ts +1 -1
- package/src/nodes/html-image-element/IHTMLImageElement.ts +1 -1
- package/src/nodes/html-input-element/IHTMLInputElement.ts +1 -1
- package/src/nodes/html-media-element/IHTMLMediaElement.ts +1 -1
- package/src/nodes/html-script-element/IHTMLScriptElement.ts +1 -1
- package/src/nodes/html-slot-element/IHTMLSlotElement.ts +1 -1
- package/src/nodes/html-template-element/IHTMLTemplateElement.ts +1 -1
- package/src/nodes/html-text-area-element/IHTMLTextAreaElement.ts +1 -1
- package/src/nodes/node/INode.ts +2 -1
- package/src/nodes/node/Node.ts +30 -0
- package/src/nodes/node/NodeUtility.ts +12 -2
- package/src/nodes/shadow-root/IShadowRoot.ts +2 -1
- package/src/nodes/shadow-root/ShadowRoot.ts +1 -1
- package/src/nodes/svg-element/ISVGSVGElement.ts +1 -1
- package/src/range/Range.ts +3 -3
- package/src/window/Window.ts +8 -8
package/src/window/Window.ts
CHANGED
@@ -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
|
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
|
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
|
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
|
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
|
97
|
-
import
|
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
|
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;
|