Skip to content

Commit

Permalink
capricorn86#463@minor: Continue Fixes Problem.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mas0nShi committed Oct 16, 2022
1 parent 608b717 commit 855ed45
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/happy-dom/src/window/Window.ts
Expand Up @@ -429,6 +429,10 @@ export default class Window extends EventTarget implements IWindow {
class XMLHttpRequest extends XMLHttpRequestImplementation {
public static _ownerDocument: IDocument = document;
}

class Range extends RangeImplementation {
public static _ownerDocument: IDocument = document;
}
/* eslint-enable jsdoc/require-jsdoc */

this.Response = Response;
Expand All @@ -437,6 +441,7 @@ export default class Window extends EventTarget implements IWindow {
this.FileReader = FileReader;
this.DOMParser = DOMParser;
this.XMLHttpRequest = XMLHttpRequest;
this.Range = Range;

this._setupVMContext();

Expand Down

0 comments on commit 855ed45

Please sign in to comment.